![]() |
AGSQL 3.1 MySQL Error Message? Please Help!
Hey, I started working on my new tgp tonight and have run into a problem. When I try to add categories in AGSQL I get this message:
MySQL Error Error Column count doesn't match value count at row 1 Query REPLACE INTO ags_Categories VALUES ( 'Amateur', 'Pictures', 'jpg,gif,jpeg,bmp,png', '', '10', '', '20', '', '20000', '', '-1', '-1' ) I don't know what to do to fix this. Can anyone help me out here? I would ask jmbsoft, but they take 24 - 48 hours to reply (now that my priority support has expired.) :( I would greatly appreciate any help, or even a link to an article that could possibly diagnose this. Thanks, c-lo |
Anybody?
|
What its telling you is that you aren't supplying enough values to fill the columns in the table
do an info columns on your ags_categories table and make sure that you are inserting a value for every column and that they are in the correct order barring that ue this syntax and name your columns explicitly REPLACE INTO ags_Categories (column1, column2, ...) VALUES ( 'Amateur', 'Pictures', ... ) |
Post the table schema... might help.
|
This may also be giving you problems
'jpg,gif,jpeg,bmp,png' those commas could be illegal characters or may need to be "escaped" one way to test that would be to replace them with spaces and try it |
mikesouth: I'll work on it tomorrow now that I understand it a little better. I find it odd that it would say that since the only thing I have done is edit the main options and tried to make categories. I haven't edited any of the code or anything...so that would lead me to believe it could be a problem with my sql database.
Anyway, I appreciate the advice, and I'll let ya know what it was when I get it figured out. Thanks, c-lo |
All times are GMT -7. The time now is 07:15 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123