akirahz Posted September 19, 2006 Share Posted September 19, 2006 Well heres my dilemma, i have a script that contains a pre_checkout.php file for credit card orders, people can order different packages from my website, from 19.99 too 39.99.. anyway, when i was testing my site i recieve an error when i try to order a packageheres a screen shot of what the error looks likein internet explorer:[IMG]http://www.rapidcityracing.com/insert-into.jpg[/img] also: here is a picture of my database tables concerning this area, "TransactionsMembership" in phpMyAdmin[IMG]http://www.rapidcityracing.com/phpmyadmin.jpg[/img] am i missing some fields? i dont see the state field anywhere, if i am missing fields, what would i have to query too create them? any and all help is appreciated, im fairly certain it is a database problem and nothing wrong with the actual php script.thanks guys, ive been tryin to fix this for about 4 days now and cant seem to figure it outif theres anymore info needed by anyone to help me solve this, im more then happy to try and get it and tell you Link to comment https://forums.phpfreaks.com/topic/21240-mysql-database-error-screen-shots-included/ Share on other sites More sharing options...
akirahz Posted September 19, 2006 Author Share Posted September 19, 2006 also the script emails me the errorUnknown column 'State' in 'field list'Query: 'INSERT INTO `TransactionsMembership` (ID, Sum, State ) VALUES ( 1158643712931, 19.99, '0' );' Link to comment https://forums.phpfreaks.com/topic/21240-mysql-database-error-screen-shots-included/#findComment-94469 Share on other sites More sharing options...
fenway Posted September 20, 2006 Share Posted September 20, 2006 Well, yes, you will need to add the state field (use the Add button from PHPMyAdmin)... and I'm not sure that you can use "sum" as a column name, since it's a function as well. You may need to escape it with backticks. Also, you really shouldn't use a CHAR column as your PK. Link to comment https://forums.phpfreaks.com/topic/21240-mysql-database-error-screen-shots-included/#findComment-95176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.