maximumxxx
New Member
I am working on building a small php/mysql script that will act something like a wordpress blog but will just be a small site for my eyes only to store PHP code snippets. So I will have categories and then pages with sample code that I write with a javascript syntax highlighter. Instead of storing my php code snippets in the file I am wanting to save them to mysql DB. So what is the best way to save PHP into mysql and to get it out of mysql to show on the page?My end result will be something like this
Update:I just wasn't sure if I needed to do something special to the code before sending it to mysql since it has all different kinds of characters in it