I have a table like this in mysql called links_tbl which has 5 rows of data
ID, LINKurl LINKname
1 google.com GOOGLE
2
3
4
5
By using php i want to echo out the 5 lines onto a html page as a link something like this:
echo "<li> <a href=$linkurl></a>$LINKname</li>"
What I am having problem with this is that I cannot understand how to get all the LINKurl and LINKname rows from the table to echo them out in the list.
Can anyboby help me out with the coding?
This should work:
Keep in mind you need to close the
<a>tag AFTER you output the name.