I'm saving contents of a particular div in mysql database as html elements. So the html elements content includes many elements such as:
<div id="div0" class="box" style="z-index: 2; width: 1689px; height: 1013px;">
<img style="margin: 0px; position: relative; display: block; height: 550px; width: 638px; top: 0px; left: 0px;">
</div>
Is there any way to reduce the data for efficiently storing in mysql database.
Such as any php or javascript functions to compress before saving to db.
base64_encode()the string to compress it slightly. It may not make much of a difference though in length.base64_encodewill help much on this ;)