Alright MySQLi issue was fixed. Now I get a new error
PHP Code:
Fatal error: Call to a member function bind_param() on a non-object in /home/ybh305/domains/domain.com/public_html/php/clients/admin/new.php on line 45
I tried to look up the "non-object" in php.net but found zero results.
@ Sock
I just did a quick
PHP Code:
<?php phpinfo() ?>
It shows that magic_quotes is 'On'. So magic_quotes do exist, and I need to take care of it, no? I'm a little clouded as to the portion of the array "_map", its confusing me really. For the example you gave me
PHP Code:
// check for magic quotes
if ( get_magic_quotes_gpc() ) {
// if so, escape slashes already present
$_POST= array_map('stripslashes', $_POST);
}
Also, if I'm checking from the begining for magic_quotes that means I really dont need that whole chunk of code because its checking for it and if its true it automatically adds stripslashes?
PHP Code:
if (!get_magic_quotes_gpc())
{
$user = stripslashes($user);
$pass = stripslashes($pass);
$dir = stripslashes($dir);
$address = stripslashes($address);
$phone = stripslashes($phone);
$email = stripslashes($email);
}
Correct? That would save a lot of time and resources?