tomiesto Posted September 18, 2009 Share Posted September 18, 2009 I am just beginning PHP and in my tutorial book it tells me to type out this code... I did that, and I get the same error as when I try to copy/paste it!! (I have sucessfully learned simpler functions like date/time, so I don't think it's a server problem or anything) This is straight out of the book: <?php $number = 5; If ($number < 10) { echo “$number is less than ten”; } ?> Link to comment https://forums.phpfreaks.com/topic/174738-solved-is-this-code-i-learned-from-an-ebook-bogus/ Share on other sites More sharing options...
Maq Posted September 18, 2009 Share Posted September 18, 2009 Use regular double quotes, not those lopsided italic looking ones. Link to comment https://forums.phpfreaks.com/topic/174738-solved-is-this-code-i-learned-from-an-ebook-bogus/#findComment-920886 Share on other sites More sharing options...
tomiesto Posted September 18, 2009 Author Share Posted September 18, 2009 Thank you VERY much!!! Link to comment https://forums.phpfreaks.com/topic/174738-solved-is-this-code-i-learned-from-an-ebook-bogus/#findComment-920889 Share on other sites More sharing options...
Maq Posted September 18, 2009 Share Posted September 18, 2009 Thank you VERY much!!! You're welcome. Just be careful copying and pasting, you may get unwanted characters. NOTE: You probably could have just posted this in the PHP Coding Help section. I understand you got this from a book but third party apps are more for CMS apps, forums, etc... Link to comment https://forums.phpfreaks.com/topic/174738-solved-is-this-code-i-learned-from-an-ebook-bogus/#findComment-920894 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.