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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -