php - Trying to make this entire line of code into a hyperlink -


echo  <a href = 'test.php'> "categoryid: " . $row["categoryid"]. " - category name: ".$row["categoryname"]. </a> "<br>"; 

this have not working properly.

this:

echo "<a href = 'test.php'>categoryid: {$row['categoryid']} - category name: {$row['categoryname']}</a><br />"; 

i using { , } allow include array in string , ignore concatenation find harder read.

i find funny can loop through mysql array can't echo simple string :p

some links (teach man fish...):


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -