Jump to content

MySQL error


WatsonN

Recommended Posts

Hey yall :) Ive got an issue with a mysql INSERT

Query string: INSERT INTO `YBK_Ads` (`BSN`, `CNF`, `CNL`, `ADD`, `CITY`, `STATE`, `ZIP`, `ToA`, `AS`, `PT`, `CN`, `BY`, `ACI`, `TAN`, `VM`, `Date`) VALUES ('Business/Service Name', 'First', 'Last', 'Address', 'City', '38002', 'Business', '1/8', 'Bill', 'check', 'No', 'Ad Copy • Artwork/Photo Instructions', 'Yes', 'No', 'October 6, 2010, 7:15 pm')
Produced an error: Column count doesn't match value count at row 1

 

where is the code

 	mysql_real_escape_string($insert = "INSERT INTO `YBK_Ads` (`BSN`, `CNF`, `CNL`, `ADD`, `CITY`, `STATE`, `ZIP`, `ToA`, `AS`, `PT`, `CN`, `BY`, `ACI`, `TAN`, `VM`, `Date`) VALUES ('{$e1}', '{$e71}', '{$e72}', '{$e2}', '{$e3}', '{$e5}', '{$e10}', '{$e13}', '{$e11}', '{$e6}', '{$e12}', '{$e8}', '{$e15}', '{$e16}', '{$date}')");
mysql_query($insert) or die( 'Query string: ' . $insert . '<br />Produced an error: ' . mysql_error() . '<br />' );

Link to comment
https://forums.phpfreaks.com/topic/215300-mysql-error/
Share on other sites

Archived

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

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