boo_lolly Posted March 10, 2010 Share Posted March 10, 2010 I cannot for the life of me figure this out. PhpMyAdmin puts there error somewhere around the word VALUES. INSERT INTO `tasks` ( `id`, `challenge_id`, `title`, `frequency`, `category`, `description` ) VALUES ( ( "", 12, "title1", "frequency1", "category1", "somedesc1" ), ( "", 12, "title2", "frequency2", "category2", "somedesc2" ), ( "", 12, "title3", "frequency3", "category3", "somedesc3" ) ); I have not left out any columns in the query on the table `tasks`. Can anyone else see what i'm doing wrong? I've been banging my head over this for like an hour... Link to comment https://forums.phpfreaks.com/topic/194772-multiple-insert-column-count-doesnt-match-value-count-at-row-1/ Share on other sites More sharing options...
PravinS Posted March 10, 2010 Share Posted March 10, 2010 Try this INSERT INTO `tasks` ( `id`, `challenge_id`, `title`, `frequency`, `category`, `description` ) VALUES ( "", 12, "title1", "frequency1", "category1", "somedesc1" ), ( "", 12, "title2", "frequency2", "category2", "somedesc2" ), ( "", 12, "title3", "frequency3", "category3", "somedesc3" ); Link to comment https://forums.phpfreaks.com/topic/194772-multiple-insert-column-count-doesnt-match-value-count-at-row-1/#findComment-1024195 Share on other sites More sharing options...
boo_lolly Posted March 10, 2010 Author Share Posted March 10, 2010 pbs, THAT TOTALLY WORKED! I can see that I had an extra closing parenthesis at the end that was not necessary and the opening parenthesis right after VALUES was also not necessary Link to comment https://forums.phpfreaks.com/topic/194772-multiple-insert-column-count-doesnt-match-value-count-at-row-1/#findComment-1024196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.