|
-
May 23rd, 2006, 11:13 PM
#1
Thread Starter
Addicted Member
compressed text and mysql
I want to store compressed text using gzcompress into mysql field where fieldtype is text.
But i get error..
This error vanishes when i use plain text.
Error is to check manual.....
Question is how to store compressed data in mysql ?
Thank You.
-
May 24th, 2006, 05:26 AM
#2
<?="Moderator"?>
Re: compressed text and mysql
what error message are you getting? Have you added slashes to the compressed value?
-
May 24th, 2006, 07:59 AM
#3
Thread Starter
Addicted Member
Re: compressed text and mysql
Error i get is
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 'cUÓyM›û]YûßTS§mÖø_öè|®SÝT?½¥®Ê!y{ëVùÊP†’Â1�'‰;(§�èh$1Cà�b
But when i use plain text (non-compressed) then there is no error at all and all things go fine.
Why to add slashes ?
I am just using gzcompress($string,9) and return value is tried to store.
-
May 24th, 2006, 08:05 AM
#4
Thread Starter
Addicted Member
Re: compressed text and mysql
Okay thank you john
addslashes function has solved the problem 
Thanks for your help
John,visualAd,pengate
-
May 24th, 2006, 08:08 AM
#5
Re: compressed text and mysql
I don't even need to post anymore
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|