Hi I need to incorporate this line in a php file. <a target="_blank" href="../C27reduced/C27 <?php echo $rowpdf[page_number]; ?>.pdf" ><img class="pdf" src="../images/pdflogo.gif" > </a> HTML: Unortunately it is a bit too complicated for me to do. I do know I am supposed to to escape the double quotes,etc. but I am too new to php and its not working. Many thanks for your teaching.
This is my faulty attempt. echo "<a target=\"_blank\" href=\"../C27reduced/C27"; echo ".$rowpdf[page_number]."pdf >.""; echo ".<img src=\"../images/pdflogo.gif\" > </a>." "; Code (markup): Thanks
<?php echo "<a target=\"_blank\" href=\"../C27reduced/C27$rowpdf[page_number].pdf\"><img class=\"pdf\" src=\"../images/pdflogo.gif\"></a>"; ?> PHP: Try that.
Hi You guys never seem to stop amazing me. Right on, first time. I am going to study this for next time. Cheers mate, much appreciated. jacka
<?php echo "<a target='_blank' href='../C27reduced/C27$rowpdf[page_number].pdf'><img class='pdf' src='../images/pdflogo.gif'></a>";?> PHP:
This way you never have to worry about escaping characters $prints=<<<EOT <a target="_blank" href="../C27reduced/C27 <?php echo $rowpdf[page_number]; ?>.pdf" ><img class="pdf" src="../images/pdflogo.gif" > </a> EOT; echo $prints; PHP: