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 ...



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

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

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!
  #2  
Old 10-28-2007, 06:31 PM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 177
Thanks: 10
Thanked 13 Times in 9 Posts
Rep Power: 4
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!
  #3  
Old 10-29-2007, 12:38 AM
met00's Avatar
osCMax Development Team
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 646
Thanks: 12
Thanked 112 Times in 103 Posts
Rep Power: 10
met00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to all
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!
  #4  
Old 10-29-2007, 07:51 AM
osCMax Testing Team
 
Join Date: Oct 2006
Location: Atlanta GA
Posts: 177
Thanks: 10
Thanked 13 Times in 9 Posts
Rep Power: 4
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!
  #5  
Old 08-29-2008, 08:21 AM
Member
 
Join Date: Aug 2008
Location: Canada
Posts: 61
Thanks: 10
Thanked 2 Times in 2 Posts
Rep Power: 2
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!
  #6  
Old 08-29-2008, 11:03 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,759
Thanks: 139
Thanked 609 Times in 521 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

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 08-29-2008, 10:39 PM
met00's Avatar
osCMax Development Team
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 646
Thanks: 12
Thanked 112 Times in 103 Posts
Rep Power: 10
met00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to allmet00 is a name known to all
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!
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
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 10:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design