here is my query:
$query2 = "SELECT * from small_images where page_number = '5'";
$result2 = mysql_query($query2);
$SI_result = mysql_fetch_array($result2);
echo 'SI_result is' .$SI_result;
the query pulls from the table "small_images" the columns image1, image2, up to image 8
the values for the corresponding fields are etruria01_sm.jpg, etruria02
here is my loop thus far:
<?
for ($i=0; $i<$data; $i++)
{
echo "<td width='60'><a href='java_script_:;' onClick='MM_openBrWindow('e".($i+1).".htm','','width=347,height=525')'><img src='uploads/{[images+i+1]}' width='54' height='76' border=\"0\"></a></td>";}
?>
But it's not grabbing the image name
I get 'uploads/{[images+i+1]}' in my html where 'uploads/{[images+i+1]}' is in the code.
I need to grab the data from images1, images2 images3 etc
any ideas?
thanks