View Single Post
Old 12-06-2007, 01:47 AM   #22 (permalink)
YBH
The Wanderer
Newcomer 
 
Join Date: Dec 2007
Posts: 22
Thanks: 4
YBH is on a distinguished road
Default

Alright MySQLi issue was fixed. Now I get a new error

PHP Code:
Fatal errorCall 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
    
$_POSTarray_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?
YBH is offline  
Reply With Quote