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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -