mjahkoh Posted October 26, 2007 Share Posted October 26, 2007 After almost 2 hours the following code produces the error below. I simply cannot figure out Begin Code <?php if ( $numPages > 1 ) { <a href="../untitled-2.php" title="targetis" target="_self">hghg</a>; } ?> End Code Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\phptrysite\tags\search2.php on line 5 Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted October 26, 2007 Share Posted October 26, 2007 You need to echo your html: <?php if ( $numPages > 1 ) { echo '<a href="../untitled-2.php" title="targetis" target="_self">hghg</a>'; } ?> Quote Link to comment Share on other sites More sharing options...
mjahkoh Posted October 26, 2007 Author Share Posted October 26, 2007 Thanks ginger again 4 making we dweet. mjahkoh Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.