Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi all,

I have the following code that DW is telling me is incorrect syntax.


$q = "INSERT INTO saved_curtains (user_id, fabric_drop, track_pole, track_pole_width, heading_tape, lining, fullness, interlined, fabric_width, final_curtain_quote, saved_date) VALUES ('$_SESSION['user_id']', '$curtain_list['fabric_drop']', '$curtain_list['track_pole']', '$curtain_list['track_pole_width']', '$curtain_list['heading_tape']', '$curtain_list['lining']', '$curtain_list['fullness']', '$curtain_list['interlined']', '$curtain_list['fabric_width']', '$curtain_list['final_curtain_quote']', NOW() ) ";


I suspect it's something to do with all the quotes. I have tried changing the single quotes into double quotes every way I could and nothing seems to fix it.


Any ideas?




Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...