I was looking at some code for sellecting records from a database I was wondering, being new at PHP and MySQL if this is the way you would selected from the database is made into an html link.
I'm not sure how to get the double quotes (") to print.
if ($row = mysql_fetch_array($result)) {
do {
print ("<a href=/"");
print $row["first_name"];
print (".htm/" > ");
print $row["first_name"];
print " </a>"
} while($row = mysql_fetch_array($result));
} else {print "Sorry, no records were found!";}
What I'm trying to get printed it something like this:
<a href="Jason.htm"> Jason </a>
where "Jason" would be taken from the database.
Any help would be very much appreciated.
Thanks