osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

1054 - Unknown column 'plain_email' in 'field list'

This is a discussion on 1054 - Unknown column 'plain_email' in 'field list' within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi. I'm trying to add an option for customers to select if they want HTML or PLAIN TEXT emails. I ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-05-2003, 10:17 AM
Anonymous
Guest
 
Posts: n/a
Default 1054 - Unknown column 'plain_email' in 'field list'

Hi.
I'm trying to add an option for customers to select if they want HTML or PLAIN TEXT emails.

I have added a field in the 'customers_info' table which is of type enum('y','n') with a default value of 'n'.
I did this as i realise there is no boolean type in mysql.

i have now modded create_account.php to accomodate the value which is passed from the form submission;

Quote:
tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created, plain_email) values ('" . (int)$customer_id . "', '0', now(), '" . $plain_email . "')");
i have assigned the string prior to this line and the value DOES propagate to it from the form.

however, i get the following error;

Quote:
1054 - Unknown column 'plain_email' in 'field list'

insert into customers_info (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created, plain_email) values ('24', '0', now(), 'y')
when i copy paste this line into phpMyAdmin, surely enough, it DOES create the record.
Why is PHP spewing up this error when the sql query seems intact?
any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 12-05-2003, 10:43 AM
New Member
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SnowBord
Default

Here's something I found on the oscommerce forums;
http://forums.oscommerce.com/index.p...p;#entry265911

Quote:
Err, The MySQL Columns did exist, which is why I was confused, but upon further investigation, I noticed that the naming scheme wasn't correct
Naming scheme?? eh?? this may be my problem but I don't get it!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-08-2003, 02:19 PM
Anonymous
Guest
 
Posts: n/a
Default

What the error means, is that there is no column named 'plain_email' in whatever table is represented in the constant TABLE_CUSTOMERS_INFO.

You have either not created the column in MySQL or you have created it, but you spelled it incorrectly/differently (That's the problem that I had)

I hope this helps. If you have any more problems, please e-mail me. I am not registered for this forum and will not receive any e-mail notifications.

You can reach me at sirblack@canada.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
1054 - Unknown column 'a.authors_id' in 'on clause' fuzzyphil osCMax v2 Customization/Mods 27 10-23-2008 12:09 AM
Error: 1054 - Unknown column islander osCMax v2 Installation issues 1 02-27-2006 12:31 PM
1054 - Unknown column 'p.vendors_product_price' RoyceK osCMax v2 Installation issues 1 02-12-2006 09:22 PM
Unknown column 'products_options_value_text' in 'field list' jptechnical osCMax v1.7 Discussion 0 08-09-2004 10:22 AM
1054 - Unknown column - Help, please ! Anonymous osCommerce 2.2 Modification Help 2 11-27-2002 12:48 PM


All times are GMT -8. The time now is 10:56 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax