Can anyone tell me how to do it? I am not new to php, but I am also not under the "advanced" category, so please.. speak to me like i am retarded
Code: Select all
<?php
include_once("db_connect.php");
$sql = "SELECT imageURL FROM commercial";
$result = mysql_query($sql);
$num=mysql_numrows($result);
$i=0;
while ($i < $num) {
$imageURL=mysql_result($result,$i,"imageURL");
//echo $imageURL.$i;
$i++;
echo '<td><a id="'.$i.'" name="'.$i.'"></a><a href="#'.$i.'"><img class="TipImg" src="'.$imageURL.'" alt="" title="" height="440" /></a></td>';
}
?>Tyler