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 Link to comment https://forums.phpfreaks.com/topic/74855-solved-whats-wrong-with-this-simple-url/ 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>'; } ?> Link to comment https://forums.phpfreaks.com/topic/74855-solved-whats-wrong-with-this-simple-url/#findComment-378476 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 Link to comment https://forums.phpfreaks.com/topic/74855-solved-whats-wrong-with-this-simple-url/#findComment-378493 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.