Jump to content

Mysql columns not matching value at row 1??


AbydosGater

Recommended Posts

Hi, I was writing my script, and when i went to run it i got an error i have not seen before..

Column count doesn't match value count at row 1.


The script is a simple insert...

mysql_query("INSERT INTO chat_messages (message_id, member_id, handle, ip, timestamp, message, type) VALUES (NULL , '0', '$ip', CURRENT_TIMESTAMP , '$handle has just logged out of chat', 'users') ") or die(mysql_error()); 


I dont think its anything to do with the code cause its comming up for all scripts i have running on this table!

Why is this? and how do i fix it??

#Abydos

Thanks
Yay! Thanks for the fast reply!

yes that worked to fix some of my problems..
But on another insert, im still getting the error!


mysql_query("INSERT INTO chat_messages (message_id, member_id, handle, ip, timestamp, message, type) VALUES (NULL , '0' '$handle', '$ip', CURRENT_TIMESTAMP , '$message', 'post') ") or die(mysql_error()); 


Im tired and might not be counting right, but i see 7 and 7 there??

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.