![]() |
php join tables
I have the following code
PHP Code:
Quote:
|
Have you run the query against the database to make sure it is correct? Echo that query out and copy & paste it into phpmyadmin or something like that. You might refer to a non-existent field into your query (mistype?).
|
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 ... |
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
|
grrrrrrrrrrrr
|
It means that whatever mysql_query returned was not a result resource, therefore it must have failed somewhere.
try: PHP Code:
|
got it working, :D.
|
| All times are GMT. The time now is 08:47 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0