» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2006, 03:10 PM
grupal grupal is offline
Junior Member
 
Join Date: Aug 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
grupal is on a distinguished road
Default Mysql_query error

I am trying to do an insert with php using this mysql_query

PHP Code:
mysql_query("INSERT INTO products (product_id, title, description, price, data, demo, design, image, version, req, updated, visits, url, votes, rate, install) VALUES (1, 'Site Access', 'Free Site Access', 0.00, 'a:3:{s:11:"expire_days";s:2:"1y";s:3:"url";s:0:"" ;s:15:"paypal_currency";s:0:"";}', '', '', 'none.gif', '0.0', 'None', '07/09/06', '1', NULL, '1', '3.5', '')");


but he data row 'a:3:{s:11:"expire_days";s:2:"1y";s:3:"url";s:0:"" ;s:15:"paypal_currency";s:0:"";}' keeps causing the script to give an mysql error. I know that the " and the ; are causing the error. Is there a work around or solution for this, as for i need to keep that row intact. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-15-2006, 03:11 PM
bornwild bornwild is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bornwild is on a distinguished road
Default

Quote:
Originally Posted by grupal
but he data row 'a:3:{s:11:"expire_days";s:2:"1y";s:3:"url";s:0:"" ;s:15:"paypal_currency";s:0:"";}' keeps causing the script to give an mysql error. I know that the " and the ; are causing the error. Is there a work around or solution for this, as for i need to keep that row intact.
Try backslashes / before the quotes and semi-colons. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 1064 (42000).... imaan MySQL Forums 1 12-19-2006 04:18 AM
Error in select statement speedy PHP Programming and Tips 1 08-19-2006 10:32 AM
myisamchk error Antoine MySQL Forums 1 08-18-2006 06:28 AM
mysql error: error 28.... Jaida MySQL Forums 1 08-16-2006 06:34 AM
ASP Error Codes - Description dam Introductions 1 12-07-2005 10:09 AM


All times are GMT. The time now is 12:31 PM.