Jump to content

[SOLVED] INSERT problem


forumnz

Recommended Posts

My code won't insert into the DB.

 

Here is the snippet:

 

<?php
mysql_query("INSERT INTO fflists (name, email, business_name, keywords, url, murl, c1, c2, c3 ,c4 ,c5, dcr, add1, add2, add3, add4, map, openhrs, prk_os, prk_ofs, prk_pos, p_pofs, dbld, pay_chk, pay_eft, pay_visa, pay_amex, pay_mstr, pay_dnrs, pay_cash, f_busdin, f_chldmen, f_conf, f_glutfree, f_view, f_livmus, f_cat, f_chldplay, f_prvdin, f_prvfunc, f_prvpart, f_rmtdin, f_wedfnc, seatcap, goodkids, reserv, deliver, takeaway, otdrseat, dresc, liqul) VALUES ('$name','$email','$bname','$keywords','$url','$murl','$c1','$c2','$c3','$c4','$c5','$dcr','$add1','$add2','$add3','$add4','$map','$opnhrs','$pos','$pofs','$ppos','$ppofs','$dbld','$cheque','$eft','$visa','$amex','$mstr','$dnrs','$cash','$busdin','$chldmen','$conf','$glutfree','$views','$livmus','$cat','$chldplay','$prvdin','$prvfunc','$prvpart','$rmtdin','$wedfnc','$seatcap','$goodkids','$reserve','$takeaway','$otdrseat','$dresc','$liqul')");
?>

 

Thanks for your help.

Sam.

Link to comment
Share on other sites

change to

 

mysql_query("INSERT INTO fflists (name, email, business_name, keywords, url, murl, c1, c2, c3 ,c4 ,c5, dcr, add1, add2, add3, add4, map, openhrs, prk_os, prk_ofs, prk_pos, p_pofs, dbld, pay_chk, pay_eft, pay_visa, pay_amex, pay_mstr, pay_dnrs, pay_cash, f_busdin, f_chldmen, f_conf, f_glutfree, f_view, f_livmus, f_cat, f_chldplay, f_prvdin, f_prvfunc, f_prvpart, f_rmtdin, f_wedfnc, seatcap, goodkids, reserv, deliver, takeaway, otdrseat, dresc, liqul) VALUES ('$name','$email','$bname','$keywords','$url','$murl','$c1','$c2','$c3','$c4','$c5','$dcr','$add1','$add2','$add3','$add4','$map','$opnhrs','$pos','$pofs','$ppos','$ppofs','$dbld','$cheque','$eft','$visa','$amex','$mstr','$dnrs','$cash','$busdin','$chldmen','$conf','$glutfree','$views','$livmus','$cat','$chldplay','$prvdin','$prvfunc','$prvpart','$rmtdin','$wedfnc','$seatcap','$goodkids','$reserve','$takeaway','$otdrseat','$dresc','$liqul')") or die(mysql_error());

 

And give us the error

 

Ray

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.