Mukesh Mandal Posted July 3, 2012 Share Posted July 3, 2012 <html> <head> <title>My Movie Site</title> </head> <body> <?php define(?FAVMOVIE?, ?The Life of Brian?); echo ?My favorite movie is ?; echo FAVMOVIE; echo ?<br>?; $movierate = 5; echo ?My movie rating for this movie is: ?; echo $movierate; ?> </body> </html> I cant find the unexpected t-string error...i am new..plzz help!! Quote Link to comment https://forums.phpfreaks.com/topic/265172-i-cant-find-the-unexpected-t-string-error/ Share on other sites More sharing options...
xyph Posted July 3, 2012 Share Posted July 3, 2012 Don't use a rich text editor to code PHP. See how our forum has converted all of your styled quotes to question marks? Either that, or don't copy and paste from sites that use stylized quotes for code. In fact, if you see a site that uses stylized quotes in their code, don't bother using that site at all Quote Link to comment https://forums.phpfreaks.com/topic/265172-i-cant-find-the-unexpected-t-string-error/#findComment-1358891 Share on other sites More sharing options...
anevins Posted July 3, 2012 Share Posted July 3, 2012 I've never come across this ? syntax before, is this the problem? Quote Link to comment https://forums.phpfreaks.com/topic/265172-i-cant-find-the-unexpected-t-string-error/#findComment-1358894 Share on other sites More sharing options...
Mukesh Mandal Posted July 3, 2012 Author Share Posted July 3, 2012 hahaha....i was using codes from a McGraw-Hill e-book...i cpoied from the pdf document, and i use notepad++. Thanks for the replies Quote Link to comment https://forums.phpfreaks.com/topic/265172-i-cant-find-the-unexpected-t-string-error/#findComment-1358919 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.