Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Message in "Specials"


SpinerC

Recommended Posts

<?php

/*

$Id: specials.php,v 1.7 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

 

*/

 

define('NAVBAR_TITLE', 'Specials');

 

define('HEADING_TITLE', 'These Won't Last Long!');

?>

__________________________________________________________________

 

Those are the codes the only thing I changed was "These Won't Last Long" from "Get em While there hot!"

 

And I am getting an error for line 15.

 

What's missing?

 

All I did was take product that is already on the site and discounted it according to the instructions and then when I clicked on the "Specials" link, whala! Error message :'(

 

I am not the smartest cookie on the block but, if you give me simple instructions, I can usually follow them.

 

Thank you for any help or suggestions :)

 

Sincerely

Char

Link to comment
Share on other sites

Those are the codes the only thing I changed was "These Won't Last Long" from "Get em While there hot!"

 

you can't use a single quote within your text definition. the single quote is reserved as the string delimiter.

 

you need to escape the single quote in the word won't using a backslash.

replace :

won't

with :

won\'t

 

Corrie

Link to comment
Share on other sites

you can't use a single quote within your text definition. the single quote is reserved as the string delimiter.

 

you need to escape the single quote in the word won't using a backslash.

replace :

won't

with :

won\'t

 

Corrie

 

Thanks Corrie, figured it out late last night :D :blink: :blush:

 

Sincerely

Char :)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...