I'm having hard time with quotation marks. I have this line of code;
echo "<a href='$bName'_read.php?bid='$bid'&id='$next_id[id]'>NEXT</a>";
with 3 variables, $bName,$bid, and $next_id[id].
There is something wrong with the quotations I've used. I also tried this;
echo "<a href='".$bName."_read.php?bid=".$bid."&id=".$next_id['id']."'">";
but it's still not working.
Can anyone explain how quoting works in this case please?
sprintfinstead$bnameshould be{}enclosed ashref='{$bname}_read.php?...and the entirehrefstring should be quoted{}As inecho "<a href='{$bName}_read.php?bid={$bid}&id={$next_id['id']}'>NEXT</a>";