Php code Parse error: syntax error, unexpected -


i make link query

here code

$getfood = "<a href="./student.php?id=">" . $food['clickid'] . "</a>" $food['clickid']; 

i error: parse error: syntax error, unexpected '/'

how write code in proper way..

it should <a href="./student.php?id=33">33</a> 33

"it should <a href="./student.php?id=33">33</a> 33"

here code:

<?php $food = array("clickid" => 33); $getfood = "<a href=\"./student.php?id=" .     $food['clickid'] . "\">". $food['clickid'] . "</a> " . $food['clickid']; print $getfood; 

prints:

<a href="./student.php?id=33">33</a> 33

mind, escaped quotes , concatenated every piece of string dot.


Comments