Thread: php join tables
View Single Post
Old 09-30-2008, 08:56 PM   #3 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Your SQL query has errors where you write the table names. Anything in back-ticks (`) is taken literally so the query is read as though you're looking for tables literally named dom.user_comments and dom.members within the current database (assuming, dom). If you really must use back-ticks then a corrected query would be:
SELECT * FROM `dom`.`user_comments`, `dom`.`members` WHERE ...
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
tego10122 (10-01-2008)