Quick question, again, I m sure this is ridiculously simple but I don t see what I m doing wrong!
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<a href="http://mysite.com/{$row[ row1 ]}/{$row[ row2 ]} ">{$row[ row3 ]} </a>";
}
This produces all my links to be stacked up one after the other. I want to order them in a list so I have tried:
echo "<ul>";
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<li><a href="http://mysite.com/{$row[ row1 ]}/{$row[ row2 ]} ">{$row[ row3 ]} </a> </li>";
}
echo "</ul>" ;
and
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<a href="http://mysite.com/{$row[ row1 ]}/{$row[ row2 ]} ">{$row[ row3 ]} </a> <br />";
}
The ultimate result I wish to see is :
-Link 1
-Link 2
-Link 3
-Link 4
What am I doing wrong? Thanks in advance!