Forum Moderators: coopster
This is simple, you need a while loop in order to fetch all of them, for instance:
$select = "SELECT pid FROM photo_photos WHERE aid='1'";
$run = mysql_query($select) or die (mysql_error());
while ($row = mysql_fetch_assoc($run))
{ //loop starts
$pid = $row['pid'];
echo $pid;
} //loop ends
instead of :
$pid = $row['pid'];
echo $pid;
you can always use :
echo $row['pid'];
Try it out