I am aware of this site not working properly. I am working on it!
Zend Framework
v0.4.6.0 beta
0

<?php error_reporting(E_ALL); ini_set("display_errors",1); $basepath = dirname(__FILE__); require_once($basepath.'/classes/dbconfig.php'); require_once($basepath.'/classes/dbcrud.class.php'); $db = new dbcrud(); if(isset($_POST['Submit'])) { $id=rand(1,1000); $name=$_POST['name']; $scode=rand(1,1000000); $rep1=str_replace('//','--',$_POST['content']); $rip2=str_replace("'",'"',$rep1); $writecode=htmlspecialchars($rip2); //$files = $scode.'.txt'; //$file = fopen($files,"w+"); //echo fwrite($file,$writecode); //fclose($file); $insertquery="insert into codetest(id,description) values($id,'$writecode')"; echo $insertquery; $db->exqute_query($insertquery); } ?>