Help inserting compressed data into a mysql database
| From: | Mr Percival | Date: | Mon, 16 Jun 2003 16:03:43 +0000 |
| Subject: | Help inserting compressed data into a mysql database | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151674@lists.php.net to get a copy of this message | ||
Hi,
I am trying to insert compressed data into a database.
Inserting it in seems to work file:
$data = addslashes(gzdeflate($data, 9));
<insert into database>
For the most part it works on reteiving the data but sometimes the data is unreadable.
<extract from database>
$data = @gzinflate($data);
What is the best way to be able to store any charater in the database so that I can guarantee the
data is going to be good?
Thanks! :))
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup