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. Link to comment https://forums.phpfreaks.com/topic/26413-very-newb-question/ 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 Link to comment https://forums.phpfreaks.com/topic/26413-very-newb-question/#findComment-120787 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 Link to comment https://forums.phpfreaks.com/topic/26413-very-newb-question/#findComment-121284 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 Link to comment https://forums.phpfreaks.com/topic/26413-very-newb-question/#findComment-121286 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] Link to comment https://forums.phpfreaks.com/topic/26413-very-newb-question/#findComment-121302 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. Link to comment https://forums.phpfreaks.com/topic/26413-very-newb-question/#findComment-121304 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.