GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   AGSQL 3.1 MySQL Error Message? Please Help! (https://gfy.com/showthread.php?t=569671)

c-lo 01-29-2006 06:48 PM

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

c-lo 01-29-2006 07:30 PM

Anybody?

mikesouth 01-29-2006 08:38 PM

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', ... )

broke 01-29-2006 08:45 PM

Post the table schema... might help.

mikesouth 01-29-2006 08:49 PM

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

c-lo 01-29-2006 11:33 PM

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