Hi,
my script is intended to get menu items from a dBase and to put them between hyperlink tags <a>, however instead it puts the first item "it1" and the rest is blank. I know this will be a child game to you (php/mysql experts)
Your help is greatly appreciated!PHP Code:<?
$query = "SELECT lang, it1, it2, it3, it4, it5 FROM menu WHERE id = $selected_lang";
$result = mysql_query($query) or die('Error : ' . mysql_error());
?>
<div class="hovermenu">
<ul>
<li><a href="" ><? $row = mysql_fetch_array($result); printf($row['it1']); ?>
</a></li>
<li><a href="" ><? $row = mysql_fetch_array($result); printf($row['it2']); ?>
</a></li>
<li><a href=""><? $row = mysql_fetch_array($result); printf($row['it3']); ?>
</a></li>
<li><a href=""><? $row = mysql_fetch_array($result); printf($row['it4']); ?>
</a></li>
<li><a href=""><? $row = mysql_fetch_array($result); printf($row['it5']); ?>
</a></li>
</ul></div>



)



Bookmarks