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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -