Hi all, i have this query i need to echo out all the contents in a loop: SELECT n.poster_id, n.date, n.subject, n.post, m.mid, m.username FROM news n INNER JOIN members m ON n.poster_id = m.mid ORDER BY n.nid DESC LIMIT 6 Code (markup): Although my while loop using a mysql_fetch_array gives this error: What is the correct way to loop through the data of a joined sql statement? And then echo it out?
Either there is an error in the query [if so output mysql_error()] or you are passing mysql_fetch_array the wrong resource. Paste your code so we can help. Thanks.
you have not posted the code where the error is coming In order to help you out please post code Regards Alex