Re: Double checking - I should turn off "magic quotes"

From: Date: Wed, 06 Jun 2007 12:19:50 +0000
Subject: Re: Double checking - I should turn off "magic quotes"
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-256168@lists.php.net to get a copy of this message
Dave M G wrote: > Robert , PHP General, > > Thank you for replying and explaining the situation clearly. >> Neither! It means using mysql_real_escape_string(): >> >> http://www.php.net/manual/en/function.mysql-real-escape-string.php > > I have now made it so each and every queries to the database pass > through mysql_real_escape_string. The way you write that makes me hope you understand how mysql_real_escape_string should be used. You do understand that you don't run it on the query, rather on the individual string variables that will be passed to the query. Cheers -- David Robley Moderators are not God. God has mercy. Today is Boomtime, the 11st day of Confusion in the YOLD 3173.

« previous php.general (#256168) next »