affordit Posted February 3, 2008 Share Posted February 3, 2008 Can someone tell me why this returns s for all recrods $query_content= "SELECT `heading`, `picture`, `description` FROM `content`"; $result=mysql_query($query_content) or die(mysql_error()); while ($info = mysql_fetch_array($result)) { echo $query_content['heading']; echo "<BR>"; echo $query_content['image']; echo "<BR>"; echo $query_content['description']; echo"<BR>"; } Link to comment https://forums.phpfreaks.com/topic/89199-solved-while-loop-question/ Share on other sites More sharing options...
corillo181 Posted February 3, 2008 Share Posted February 3, 2008 $query_content= "SELECT `heading`, `picture`, `description` FROM `content`"; $result=mysql_query($query_content) or die(mysql_error()); while ($info = mysql_fetch_array($result)) { echo $info['heading']; echo "<BR>"; echo $info['image']; echo "<BR>"; echo $info['description']; echo"<BR>"; } Link to comment https://forums.phpfreaks.com/topic/89199-solved-while-loop-question/#findComment-456731 Share on other sites More sharing options...
affordit Posted February 3, 2008 Author Share Posted February 3, 2008 Thanks missed it Link to comment https://forums.phpfreaks.com/topic/89199-solved-while-loop-question/#findComment-456736 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.