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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux