>-----Ursprüngliche Nachricht----- >Von: AndrewJames [mailto:andrewhu...@gmail.com] >Gesendet: Montag, 7. September 2009 11:39 >An: mysql@lists.mysql.com >Betreff: mysql_real_escape_string() > >Hey guys, > >whenever i try to perform this function on my $variables before using them >in sql queries it deletes them and returns my variable as nothing, ''.
>From http://de.php.net/mysql_real_escape_string mysql_real_escape_string "Returns the escaped string, or ___FALSE__ on error." -echo "just after->" . $value . "<-"; +echo "just after->" . var_dump($value) . "<-"; false is evaluated as an empty string! Thats why you see nothing! watch -> php_error.log you'll probably find something like "cannot connect to mysql...." mysql_real.... needs a connection to a mysql DB! Majk -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=arch...@jab.org