Forums / Basic Configuration / I screwed up, please help!!!

I screwed up, please help!!!

Locked

Views: 1,379

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Jan 2009, 1:15 PM
#1
childproof avatar

childproof

New Zenner

Join Date:
Oct 2008
Posts:
21
Plugin Contributions:
0

I screwed up, please help!!!

Ok, I broke the cardinal rule and didn't backup before I made a SMALL change.:oops::frusty::frusty:

I'm trying to adjust the create an account php file. I made a small adjustment here and there and uploaded after each change to see if I liked it. Everything was ok and I'm not sure what I did to create a blank load page, but I'm sure it's something super simple. If one of you code guru's could help me out that would be awesome!

Let this be a lesson to all us new guys, take the 3 seconds it takes to backup a file. It's better than waiting all day for a fix:no:

Thanks so much,

<?php /** * @package languageDefines * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: create_account_success.php 4816 2006-10-23 04:08:52Z drbyte $ */ define('NAVBAR_TITLE_1', 'Create an Account'); define('NAVBAR_TITLE_2', 'Success'); define('HEADING_TITLE', 'Your Account Has Been Created!'); define('TEXT_ACCOUNT_CREATED', 'Congratulations! Your new account has been successfully created! You can now take advantage of member privileges to enhance your online shopping experience with us. If you have <small><strong>ANY</strong></small> questions about the operation of our store, please email the <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">The Team at Child Proof My Home</a>.<br /><br />A confirmation has been sent to your provided email address, don't forget to check your "junk" box. If you have not received it within the hour, please <a href="' . zen_href_link(FILENAME_CONTACT_US) . '">contact us</a>.'); define('PRIMARY_ADDRESS_TITLE', 'Primary Address');
26 Jan 2009, 1:47 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: I screwed up, please help!!!

Try escaping the apostrophe in don't by placing a backslash in front of it.

26 Jan 2009, 1:49 PM
#3
childproof avatar

childproof

New Zenner

Join Date:
Oct 2008
Posts:
21
Plugin Contributions:
0

Re: I screwed up, please help!!!

I'm not sure what you mean.

I tried this \don't

Didn't fix it, or do you mean something else?

Thanks.

26 Jan 2009, 1:53 PM
#4
childproof avatar

childproof

New Zenner

Join Date:
Oct 2008
Posts:
21
Plugin Contributions:
0

Re: I screwed up, please help!!!

Ok I removed the ' in don't with no backslash and it fixed it. Just for future reference what do I need to do to a word so I can use a
apostrophe.

Thanks again

26 Jan 2009, 1:57 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: I screwed up, please help!!!

I should have been more clear.

You need to escape quote marks and apostrophes in PHP like this:

don't

26 Jan 2009, 1:59 PM
#6
childproof avatar

childproof

New Zenner

Join Date:
Oct 2008
Posts:
21
Plugin Contributions:
0

Re: I screwed up, please help!!!

Gotcha. thanks again.

And remember children, BACK UP!!!:clap: