I was fooling around with PHP and MySQL and wanted to generate some lists so I didnt have to manually update each page that contains the lists. I have a few tables in my SQL for the different lists. Im just wondering how I can display the lists (as URL's) so when the user clicks on it they go to the appropriate page.
$result = mysql_query("SELECT * FROM webdesign");
while ( $row = mysql_fetch_array($result) )
{
echo ("<a href=\"" . $row["url"] . "\"" . $row["name"] . "\">
</a>") ;
}
Im a little unclear of the echo section.
$result = mysql_query("SELECT * FROM webdesign");
while ( $row = mysql_fetch_array($result) )
{
echo ("<a href=\"" . $row["url"] . "\"" . $row["name"] . "\">
</a>") ;
}
Im a little unclear of the echo section.