Dyno Posted November 7, 2006 Share Posted November 7, 2006 i'm very new to php and mysql but whenever i try to enter my <?php into the body of my html document. i get the errorParse error: syntax error, unexpected '<' in /home/adaminc/public_html/temp/index.php on line 169thats the line i put <?php on. Quote Link to comment Share on other sites More sharing options...
ralph4100 Posted November 7, 2006 Share Posted November 7, 2006 you probably didn't close the <?php with a corresponding ?> so when it gets to html code it sees the < and has a syntax error Quote Link to comment Share on other sites More sharing options...
Dyno Posted November 7, 2006 Author Share Posted November 7, 2006 nope i have the ?> tag, it goes<?php<html><body></body></html>?>at the end. Anything else Quote Link to comment Share on other sites More sharing options...
stewart715 Posted November 7, 2006 Share Posted November 7, 2006 maybe you haven't closed it with the necessary ; or }post the actual code Quote Link to comment Share on other sites More sharing options...
littlejones Posted November 8, 2006 Share Posted November 8, 2006 Have you actually put anything in the php tags?Try this as an example...[code]<html><head><title></title></head> <body> <?php echo "HELLO PHP FREAKS!"; ?> </body></html>[/code] Quote Link to comment Share on other sites More sharing options...
Dyno Posted November 8, 2006 Author Share Posted November 8, 2006 nevermind i'm stupid i figured it out. 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.