[PHP-DB] making a query with env varable (but is not working)

2004-10-20 Thread luis medrano
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

RE: [PHP-DB] making a query with env varable (but is not working)

2004-10-20 Thread Norland, Martin
Without knowing the actual value of $var, it's hard to say. Assuming the table 'frases' has the requisite fields (frases, palabras) and your sql is indeed returning any results (are you trying to match exactly, or do you mean to do palabras like '%$var%' instead of palabras='$var' ?) - the only