Log in

View Full Version : search for multiple table



kmyousafzai
05-03-2008, 09:08 AM
i have three table (user,movie,music) which all have an colum(country) and
i want to retreive country name as same time
my query is like this but it doesn't work any idea please..


$QuerySelect="SELECT * FROM movie,music,user WHERE `country` LIKE'%$name%'";

phpsales
05-10-2008, 03:11 PM
Please place a white space after LIKE:

Before:
$QuerySelect="SELECT * FROM movie,music,user WHERE `country` LIKE'%$name%'";

After:
$QuerySelect="SELECT * FROM movie,music,user WHERE `country` LIKE '%$name%'";