Jump to content
MakeWebGames

Recommended Posts

Posted

thats mres via the class file v2 has a function called mysql_escape thats in the global_func.php file

function mysql_escape($str)
{
return str_replace("'","''",$str);
}
Posted

The only thing I can think mysql_safe could be is mysql_close or mysql_free_result :S

Now how about showing us how your using it?

The most up-to-date version is mysql_real_escape_string anyway. People seem to use the easy way out.

Nothing about mysql_* is up-to-date..

Ps:

$db->escape() is just mysql_real_escape_string() with a shorter name..

Posted

@snake

no mysql_real_escape_sting is a php function a self made function that comes with and is used in mccodes v2 is mysql_escape (also in v1/lite i think) the class folder defines $db->escape as mysql_real_escape_string if you hold v2 look in the global_func file for it its not a good function and i do not use it however it is there and is used inside the base v2 script i fail to see how its an easy way out if its already being used inside v2?

also yes please post the line/page its being used in please

Posted

not sure whats its ment to be now...

$_GET['ID'] = abs(intval($_GET['ID']));

 

makes sure its a number i assume thats what your checking

@snake

it takes out the ' before saving to the database

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...