i have abou 6 tables that i want to search from, these
tables are based i one database
what i want to do is to use a varible to select the required
table for the search to retrieve the correct results
can some one help me please
$query= "SELECT * FROM $gettable WHERE sname LIKE '$wsoft';";
when i do the above code then an error is return due to the
$gettable varible
i think its a wrong syntax but i cannot find any examples anywhere here (forum) or in the books i have.
if i have no solution then its gonna be multiple IF statments.
something i just dont want to do (looks nasty)
thanks
tables are based i one database
what i want to do is to use a varible to select the required
table for the search to retrieve the correct results
can some one help me please
$query= "SELECT * FROM $gettable WHERE sname LIKE '$wsoft';";
when i do the above code then an error is return due to the
$gettable varible
i think its a wrong syntax but i cannot find any examples anywhere here (forum) or in the books i have.
if i have no solution then its gonna be multiple IF statments.
something i just dont want to do (looks nasty)
thanks
Comment