# PHP, MySQL, & BLOBs

**URL:** https://forum.kirupa.com/t/php-mysql-blobs/232152
**Category:** programming
**Created:** [July 11, 2007, 3:46pm UTC](https://forum.kirupa.com/t/php-mysql-blobs/232152 "2007-07-11T15:46:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![raithedavion](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/raithedavion/32/3427_2.png) [@raithedavion](https://forum.kirupa.com/u/raithedavion)
#### Post date: [July 11, 2007, 3:46pm UTC](https://forum.kirupa.com/t/php-mysql-blobs/232152/1 "2007-07-11T15:46:23Z")

</div>

I’m trying to dynamically take page content that includes php coding throughout it, put it inside a variable, addslashes to the variable…and then insert the variable string into a MySQL BLOB. My question is…how?

The old page content is layed out with intermixed php & html, so quotes, both single and double are used throughout it. Would I just declare a php variable and try to set it to the content? Could I do something like this $content = include “file.php”??? What would the most effience, but yet fast way to do this?

Thanks,

Raithe Davion
