$sql = mysql_query("SELECT n.*, r.`newspic` FROM `news` as n, `regiments` as r WHERE n.`regID` = r.`regID` AND n.`memberonly` = 0 ORDER BY n.`dateposted` DESC");
However when i run it in PHP under a while loop, only one column is outputted, dispite the fact that running this query in phpmyadmin returns all the columns.
All my other loops work fine, its just this one...
Question
+dave164 Subscriber¹
Hey,
I have this SQL query
$sql = mysql_query("SELECT n.*, r.`newspic` FROM `news` as n, `regiments` as r WHERE n.`regID` = r.`regID` AND n.`memberonly` = 0 ORDER BY n.`dateposted` DESC");
However when i run it in PHP under a while loop, only one column is outputted, dispite the fact that running this query in phpmyadmin returns all the columns.
All my other loops work fine, its just this one...
Any surgestions?
Thanks,
Garnett
Link to comment
Share on other sites
7 answers to this question
Recommended Posts