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'];
}
}

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to