How can I store PHP code inside of a mysql table -
i working on building small php/mysql script act wordpress blog small site eyes store php code snippets. have categories , pages sample code write javascript syntax highlighter. instead of storing php code snippets in file wanting save them mysql db. best way save php mysql , out of mysql show on page?
my end result this
alt text http://img2.pict.com/c1/c4/69/2516419/0/800/screenshot2b193.png
update:
i wasn't sure if needed special code before sending mysql since has different kinds of characters in it
if you're not using kind of database abstraction layer, call mysql_real_escape_string on text.
Comments
Post a Comment