close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

set up database end date for coupon--get white space message in cart

Thread began 10/30/2012 11:14 am by watercolor346374 | Last modified 10/30/2012 12:42 pm by Ray Borduin | 1111 views | 3 replies |

watercolor346374

set up database end date for coupon--get white space message in cart

Hello,
I set up the end date for database coupon codes as per instructions here:
showthread.php?t=20313&highlight=coupon+end+date+database
the db is: couponCodes
fields are: couponid auto inc , couponCode varchar, couponAmt double, expDate date
When I test it on testing server I get this msg:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /Applications/MAMP/htdocs/megan_isaacs_cms/WA_eCart/megan_isaacs_PHP.php on line 172

I have looked and looked at this line and cannot see the problem.
Everything worked prior to adding this to the cart discount
Sending files cart.php and the wa php page.
Thank you,
K

Attached Files
web_assist_10_30.zip
Sign in to reply to this post

Ray BorduinWebAssist

It looks like you have extra quotes on the line referenced in the error. If you look at that line the code:

strtotime("$_SESSION['expDate']")

should be:
strtotime($_SESSION['expDate'])

Sign in to reply to this post
Did this help? Tips are appreciated...

watercolor346374

Thank you, Ray. It is working. How did that happen, did not put any quotes around it when I set up the discount rules. Is this something dreamweaver is doing?
K

Sign in to reply to this post

Ray BorduinWebAssist

I can't say how it could have happened, since I didn't see it while it happened. I can only evaluate how to fix it based on the files you sent. I can try to reproduce the steps and see if I can figure it out.

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...