|
|
Joined: Feb 2003
Posts: 39
Member
|
Member
Joined: Feb 2003
Posts: 39 |
Hello, Im new to the world of PHP or whatever, and I made a website but it it keeps saying... [/code]What am I doing wrong? Here is the code on line 12.
[code]
|
|
|
|
Joined: Nov 2001
Posts: 745
Admin Emeritus
|
Admin Emeritus
Joined: Nov 2001
Posts: 745 |
Echo should use " around your string
|
|
|
|
Joined: May 2000
Posts: 1,356
Addict
|
Addict
Joined: May 2000
Posts: 1,356 |
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...
|
|
|
|
Joined: Feb 2003
Posts: 39
Member
|
Member
Joined: Feb 2003
Posts: 39 |
Yea sorry didnt update this sooner but I figured it out. 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
|
|
|
|
Joined: Sep 2000
Posts: 4,211
Master Hacker
|
Master Hacker
Joined: Sep 2000
Posts: 4,211 |
quote: Originally posted by Gizzy: 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]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 69
Joined: January 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|