I have tried lot but failed to save any script in database using PHP actually i have to save my google analytic code in that and want to echo out at main page, i used TEXT, VARCHAR etc and i use simple input text or textarea, i think it is the prob due you using < ' > char, can any one help me. Thanks in advance
u cant harvest or steal any php scripts, because they are run at the server and only their output is sent to you (your browser). Javascript u can save by just copying the source code out from html source.
oh, i see. use VARCHAR or TEXT (it doesnt matter), use appropriate encoding for those field (i.e. UTF-8) then you will need to encode >< before saving to mysql with some algoritm. then when getting code from mysql, u need to use inverse algoritm to decode it back.. simple. i think u can google the solution, which i'm sure, already someone published, like i can.