Jump to content

[SOLVED] While loop question


affordit

Recommended Posts

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

$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>";
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.