Might be:
<?
$row = mysql_fetch_row($result);
extract($row);
echo '<li>' . $Variable1. '</li>';
echo '<li>' . $Variable2. '</li>';
echo '<li>' . $Variable3. '</li>';
echo '<li>' . $Variable4. '</li>';
echo '<li>' . $Variable5. '</li>';
?>
Depending on the fact if u used ASSOC or BOTH with the query.
EDIT: ur using BOTH nm 🙂
Another way might be like:
<?
$row = mysql_fetch_row($result);
extract($row);
echo '<li>' . $Row[1]. '</li>';
echo '<li>' . $Row[2]. '</li>';
echo '<li>' . $Row[3]. '</li>';
echo '<li>' . $Row[4]. '</li>';
echo '<li>' . $Row[5]. '</li>';
?>
In this way u can repeat it as many times as u like without a function()