join query, how to output?
Hi all, i have this query i need to echo out all the contents in a loop:
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?
Hi all, i have this query i need to echo out all the contents in a loop:
Code:
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
Although my while loop using a mysql_fetch_array gives this error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/altercod/public_html/mecha00.com/index2modules/news.php on line 19
What is the correct way to loop through the data of a joined sql statement? And then echo it out?




