Very simple php script:
$result = mysql_query("SELECT id, fullname FROM mdl_course");
while($row = mysql_fetch_array($result))
{
echo $row['id'] . " " . $row['fullname'];
echo "<br />";
}
?>
But I want to change it so that I can write 'id' and 'fullname' into <a href=" ">
Something like:
<a href="www.link.com/$row['id']">$row['fullname']</a>
Can anyone help?


LinkBack URL
About LinkBacks



