hi, I am trying to insert compresed data into a mysql database.
To compress the data im using:
$data = addslashes(gzdeflate($data, 9));
and to extract the data form the database later on im using
$data = @gzinflate($data);
this works most of the time but not all the time... sometimes the extracted data is unreadable.
What do i need to do to ensure the data going in and coming out is going to be good data?
I think that it must be because of some reserved characters are going in or coming out of the database.