Code: Select all
<?php
echo "<table width="100%" border="0" cellspacing="0" cellpadding="0">\n"; // begin master table
echo "<tr>\n"; // begin master table's one and only row
do {// start while loop
$image = $row_Recordset1ї'image']; // define image number for each loop
if($genre = "comedy")
{ // start if loop
echo "<td>\n"; // begin master table column to be repeated by loop
echo "<table width="100%" border="0" cellspacing="0">\n"; //begin sub-table
echo "<tr>\n"; // start sub-table row 1
echo "<A href=??????????><div align="center"><IMG SRC=images/$image.jpg></A></div>\n"; // insert dynamic image
echo "<br><div align="center">".$row_Recordset1ї'title']."</div>\n"; // insert dynamic title
echo "<br><div align="center">".$row_Recordset1ї'format']."</div>\n"; // insert dynamic format
echo "</table>\n"; // end sub-table
echo "</td>\n"; //end master table column
}
}
while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>Code: Select all
<?php
$image = $row_Recordset2ї'image'];
echo "<table width="100%" border="0" cellspacing="0">\n"; //begin table
echo "<tr>\n"; // start table row
echo "<div align="center"><IMG SRC=backs/$image.jpg></div>\n"; // insert dynamic image
echo "<br><div align="center">".$row_Recordset2ї'title']."</div>\n"; // insert dynamic title
echo "<br><div align="center">".$row_Recordset2ї'actors']."</div>\n"; // insert dynamic actors
echo "<br><div align="center">".$row_Recordset2ї'description']."</div>\n"; // insert dynamic description
echo "</tr>"; // end table row
echo "</table>\n"; // end table
?>