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?

 

Cheers

Paul

Link to comment
Share on other sites

 Share

×
×
  • Create New...