UBB.Dev
Posted By: ChiKen ScraTch Parse Error - 03/21/2003 8:56 PM
Hello, Im new to the world of PHP or whatever, and I made a website but it it keeps saying...

Code
[/code]What am I doing wrong? Here is the code on line 12.

[code]
Posted By: Ron M Re: Parse Error - 03/21/2003 9:45 PM
Echo should use " around your string
Posted By: Burak Re: Parse Error - 03/21/2003 10:58 PM
you must escape the ' char in your string:

[code][/code]or if php has such an operator like perl, you can use it instead of quotes. Perl has the qq// operator for example... I dont know php...
Posted By: ChiKen ScraTch Re: Parse Error - 03/21/2003 11:10 PM
Yea sorry didnt update this sooner but I figured it out. shocked
Posted By: Gizmo Re: Parse Error - 03/21/2003 11:11 PM
[code][/code]
Posted By: Matt Jacob Re: Parse Error - 04/06/2003 1:10 AM
Quote
quote:
Originally posted by Gizzy:
Code
[/code]
If you're using double quotes, there's no need to escape the single quote. But you should really use single quotes all the time, because then the parser doesn't have to search for variables to interpolate. :)

So a correct statement would look like this:
[code]
© UBB.Developers