If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Problems with quotes after moving database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-09, 05:51
PHPnewbie PHPnewbie is offline
Registered User
 
Join Date: Aug 2009
Posts: 1
Problems with quotes after moving database

Hi to all,

I moved a db from a website to another but i have big trouble with single/double quotes. I've recreated the site and built a new database with the same name as the original database. When I try to update an old article on the website I get the following error..

Quote:
I'm givin' her all she's got, Captain, but we need more power!
This error said :
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 've seen and manage your video collection.', `DESCRIPTION` = 'Coollector is a gre' at line 1
And this because the description of the article contains a single quote:

Quote:
Coollector Movie Database: track the movies you've seen and manage your video collection.
The old website MySQL version: 5.0.81
The new website MySQL version: 5.1.30

Pls. help me with a simple soution, it's been two days since i try and i try and I'm going crazy.

Thank you in advance.
Reply With Quote
  #2 (permalink)  
Old 08-13-09, 07:12
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Code:
INSERT INTO your_table description
VALUES ('Coollector Movie Database: track the movies you''ve seen and manage your video collection. ')
__________________
George
Twitter | Blog
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On