My code spits out candidate information and I want a link next to each candidate directing to ?loadcandidate=id
The data displays fine except it doesn't add the id in the link.. it's just blank (shows as ?loadcandidate=):
<?php
foreach ($cands as $cand):
?>
<?php htmlout($cand['id']); ?>-
<?php htmlout($cand['firstname']); ?>-
<?php htmlout($cand['lastname']); ?>-
<?php htmlout($cand['email']); ?><br><br>
<a href="?loadcandidate="<?php echo $cand['id'];?>">load candidate</a>
<?php
endforeach;
?>
What's wrong with my syntax?
"before<?php echo $cand['id'];?>.$cand['id']blank?