$query = mysql_query ("SELECT * FROM $table WHERE filename LIKE '%" .
$searchq . "%' OR filename1 LIKE '%" .
$searchq . "%' AND category = '" . $_SESSION['action']."'") or
die ("could not search");
Every time my query gives the output Could not search!!
where $table
is variable for table_name
, filename
and filename1
are filednames
of the same table respectively.
Thank you .