Jump to content
MakeWebGames

Recommended Posts

Posted
ah just dawned on me i forgot a SQL

alter table users add searches INT(4) NOT NULL default 25;

Due to a recent discussion on another thread, I just have to suggest using SMALLINT( 4 ) instead. :P

Posted
Due to a recent discussion on another thread, I just have to suggest using SMALLINT( 4 ) instead. :P

Well it's dependent on the game owner, due to being able to change the 'default' amount of searches a user gets;

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

  • 3 weeks later...
Posted

Fatal error: Call to undefined function mkglobal() in /home/content/46/8879046/html/addsareas.php on line 34

does anyone know how to fix this

Posted
Fatal error: Call to undefined function mkglobal() in /home/content/46/8879046/html/addsareas.php on line 34

does anyone know how to fix this

 

Re-read the error...Call to undefined function mkglobal() meaning a function name mkglobal() is in your script being used, but there is no such function.

example such as echo mkglobal($r[username']);

and in your function script there is no function made of mkglobal() look into your global_func.php and make sure you have that function in there. You may have forgot to add it.

Posted

dd this to the globals file mentioned in the folder

function mkglobal($vars) {

if (!is_array($vars))

$vars = explode(":", $vars);

foreach ($vars as $v) {

if (isset($_GET[$v]))

$GLOBALS[$v] = unesc($_GET[$v]);

elseif (isset($_POST[$v]))

$GLOBALS[$v] = unesc($_POST[$v]);

else

return 0;

}

return 1;

}

Posted

Fatal error: Call to undefined function unesc() in /home/content/46/8879046/html/global_func.php on line 68

looks like i have loads missing from my global func.php

  • 2 weeks later...
  • 2 months later...
Posted (edited)

the script work very well but when i try to create a search area after clic add...

its show:

Column count doesn't match value count at row 1

so im stuck with the firstcontact. :)

and by the way very nice mod. i like it.

i find the solution

in addareas.php

find:

implode(",", array_map("sqlesc", array($url, $display, $level, $display_name, $description, $Locked))). ")") or die(mysql_error());

and change by:

implode(",", array_map("sqlesc", array($url, $display, $level, $display_name, $description, $Locked, $member))). ")") or die(mysql_error());

 

was missing the $member

:)

Edited by sixsens
  • 8 years later...
Posted

definitely need balance. work on your data flow so it makes sense as you don't want to create a say a unevenness for your economy - that only leads down one road - reset! and its game over!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...