Hi there,
I had a similar problem before, and up to now, I still don't know how to parse PHP code extracted from a DB field.
Anyway, I thought of a work around for this problem but I haven't tried it yet. How about, storing filenames of flat files that contain PHP snippets in your DB, and then <i>including</i> it inside your PHP script that requires your certain PHP code.
Do you get what I mean? Instead of storing your PHP snippets or code in <b>$content</b> you can try storing filenames of flatfiles. This means, you'll be writing PHP code in flat/text files. Then you may do a simple include call for it, like this:
<b>include $content;</b>
instead of doing <b>echo "$show_scon"</b>
well, it won't be as good as storing content in a DB, and you'll probably get bigger space requirements to your server, but it's the only promising way to do this (as of this moment).
goodluck, and tell me if it worked!
🙂