Thread: php join tables
View Single Post
Old 09-30-2008, 03:55 PM   #1 (permalink)
tego10122
The Contributor
 
tego10122's Avatar
 
Join Date: Sep 2008
Location: Miami
Posts: 39
Thanks: 7
tego10122 is on a distinguished road
Default php join tables

I have the following code
PHP Code:
 $q mysql_query("SELECT * FROM `dom.user_comments`, `dom.members` WHERE `to` = '$user[username]' AND `username` = '$comment[author]' ORDER BY `user_comments.id` DESC LIMIT 3"); 
and always get->
Quote:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
Send a message via MSN to tego10122
tego10122 is offline  
Reply With Quote