+ Reply Thread
#1
I need help in converting this code to mysqli

if(!get_magic_quotes_gpc())
{
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string',
$_POST);
$_COOKIE = array_map('mysql_real_escape_string',
$_COOKIE);
}
else
{ $_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_GET = array_map('mysql_real_escape_string', $_GET);
$_POST = array_map('mysql_real_escape_string',
$_POST);
$_COOKIE = array_map('mysql_real_escape_string',
$_COOKIE);
}
#2

I think the best thing is that you use my library on github - https://github.com/dhtml/dhtmlsql

#3

I think the best thing is that you use my library on github - https://github.com/dhtml/dhtmlsql

#4
OK thanks let me check it out
#5

I can still help you translate your code to mysqli sha if that is what you really want.

#6

You are better using this https://github.com/dhtml/dhtmlsql wrapper. I have extensively used in since it came live and haven't had any issues. I can only think about improvements to it when necessary.

Back to top