09-30-2008, 03:55 PM
|
#1 (permalink)
|
|
The Contributor
Join Date: Sep 2008
Location: Miami
Posts: 39
Thanks: 7
|
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
|
|
|
|