osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Easy Populate SQL Error

This is a discussion on Easy Populate SQL Error within the osCMax v2 Features Discussion forums, part of the osCMax v2.0 Forums category; I have the file laid out right for import but when I try I get... 1064 - You have an ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Features Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 10-26-2007, 12:07 PM
New Member
 
Join Date: Oct 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
RobMacAF is on a distinguished road
Default Easy Populate SQL Error

I have the file laid out right for import but when I try I get...

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's (Normal, Classic, Rock, Jazz & Pop)
Upgradeable Firmware
PC and Mac Comp' at line 11

INSERT INTO products_description (products_id, language_id, products_name, products_description, products_url) VALUES ( '9', 1, 'MP3 PLAYER/USB FLASH DRIVE with BUILT-IN 256MB FLASH MEMORY', 'FEATURES:
256 MB Built-in Flash Memory
Mobile Music, Data, Documents and Pictures Storage.
Direct Connection into USB Port (No Cable Required)
Plug and Play (No Software Required for Windows ME/XP/2000 and Mac OS X)
Voice Recording Up to 16 Hours
Displays Song Title, Album and Artist
Digital Preset EQ's (Normal, Classic, Rock, Jazz & Pop)
Upgradeable Firmware
PC and Mac Compatible
Requires 1 x "AAA" Battery for MP3 Playback (Not Included)

SPECIFICATIONS:
Unit Dimensions: 3.69" x 1.18" x 0.8"(WHD)
Blister Packaging: 7.09" x 9.84" x 9.95"(WHD)

ACCESSORIES INCLUDED:
Installation CD
USB Cable
Carrying Strap
Professional Digital Neckband Stereo Headphones', '' )

[TEP STOP]



Anyone have any ideas on how to fix this? My server uses mySQL5

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 10-28-2007, 06:31 PM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 148
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: Easy Populate SQL Error

You just need to upgrade to the new ver. you are having trouble importing with @%$%$^&**())(*;;'/. The new one works with csv

Will fix your problem

Adam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 10-29-2007, 12:38 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 461
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 7
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: Easy Populate SQL Error

"Digital Preset EQ's"

Single quote error. escape it. error will go away. The change is a simple one in easypop... Before you do the insert on the description line, use an addslashes() and the problem will go away.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 10-29-2007, 07:51 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 148
Thanks: 8
Thanked 13 Times in 9 Posts
Rep Power: 2
ALElder
Default Re: Easy Populate SQL Error

met00 is also correct

But if you would like to keep the "Digital Preset EQ's" you can upgrade and it will import correctly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-29-2008, 08:21 AM
New Member
 
Join Date: Aug 2008
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0
BrandonScottishRegalia is on a distinguished road
Default Re: Easy Populate SQL Error

met00 can you explain what you mean for this? i added the new version of like ALElder suggested but i still get the 1064 error because of the single quote. Its mainly from my category names now. So do i just add the addslashes() within each category title or do you mean within each cell with a ' in it?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-29-2008, 11:03 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,446
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Easy Populate SQL Error

Escape the quote - put a backslash \ in front of it.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-29-2008, 10:39 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 461
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 7
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: Easy Populate SQL Error

before you enter anything into the database use addslashes() to normalize it for entry to the database. mysql sees a ' as a special character addslashes() will turn the ' to a \' which will allow it to be inserted.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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
not so 'easy populate', upload error danhosts osCMax v2 Installation issues 5 09-29-2006 12:28 PM
Easy Populate Error Message markymrk22 osCommerce 2.2 Modification Help 1 07-07-2005 11:42 AM
easy populate - error jloyzaga osCMax v1.7 Discussion 22 03-08-2004 09:11 PM
easy populate fatal error americamba osCommerce 2.2 Modification Help 0 01-18-2004 11:43 AM
Easy Populate https error john- osCMax v1.7 General Mods Discussion 0 12-27-2003 05:13 PM


All times are GMT -8. The time now is 11:42 PM.


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