making a query with env varable (but is not working)

From: Date: Wed, 20 Oct 2004 18:45:10 +0000
Subject: making a query with env varable (but is not working)
Groups: php.db 
Request: Send a blank email to php-db+get-36934@lists.php.net to get a copy of this message
List i have the following code. where i making a query using env variable.but is not working. the value on $var is valid value. any idea how can i make it work? Luis $_GET = $GLOBALS['HTTP_GET_VARS']; $var=$_GET['search_engine']; if (!empty($var)) { print "$var"; $query="SELECT frases FROM frases where palabras='$var'"; $result=mysql_query($query); while ($row=mysql_fetch_assoc($result)){ extract($row); $texto=$row['frases']; } }

« previous php.db (#36934) next »