Php fetch array
i want to fetch array from mysql db using <li>, and i want each <li> element to have a unique url. but i don't know how to go about it. Please i need help.
<?php
$match=mysql_query("SELECT Name FROM camp")or die("can't get result");
while($row=mysql_fetch_array($match)){
echo '<li id="people">'.'<a href="#">'. $row['Name'].'</a>'.'</li>';
}?>
-
Andrew H -
[ 1 ] Thanks
Signature"You shouldn't come here and set yourself up as the resident wizard of oz." {{ DiscussionBoard.errors[8753573].message }} -
-
donMhico -
Thanks
{{ DiscussionBoard.errors[8753726].message }} -
-
heroecitadel -
Thanks
{{ DiscussionBoard.errors[8754916].message }} -