Code: Select all
function writeMainMenu()
{
global $result;
$num_rows = mysql_num_rows($result);
if ($num_rows > 0) {
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
while ($row = mysql_fetch_assoc($result)) {
echo '<tr> <td height="25" >';
echo '<a href="'.$rowї'link'].'"><img src="'.$rowї'image'].'" width="136" height="25" alt="'.$rowї'alt'].'" border="0" /></a>'."\n";
echo '</td></tr>';
}
echo '</table>';
}
}Code: Select all
$result = mysql_query("SELECT * FROM mainMenu",$db);Thank you in advance for any help to point me in right direction