Jump to content

Loop Help


Vivid Lust

Recommended Posts

Im trying to solect the whole column "url", and display contents row by row:

 

#Display images
$query = mysql_query( "SELECT url FROM gallery")
or die(mysql_error());
$row = mysql_fetch_assoc($query);
while ($row = mysql_fetch_assoc($query)){
echo $row['url'];

 

The problem is, is that only one URL is displayed,

Link to comment
https://forums.phpfreaks.com/topic/87090-loop-help/
Share on other sites

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.