samedi 21 juillet 2018

Nesting PHP inside PHP

So I have this

 echo "<a class='btn btn-primary' href=''>Read more...</a>";

in a PHP loop and I want to do something like this:

<a class='btn btn-primary' href=“single.php?news=<?php echo “$row[‘codn’] ?>”>Read more...</a>

How can I easily do it?




Aucun commentaire:

Enregistrer un commentaire