$at=$_POST['titles']; $bc=$_POST['contents']; $con=mysql_connect("localhost","amahoroe_gilbert","!amahoro!_16newgt"); mysql_select_db("amahoroe__enrgy2014",$con)or die(mysql_error()); $query=mysql_query("insert into Infor_content (id,title,content) values ('NULL','$at','$bc')")or die(mysql_error()); $bd=mysql_query($query,$con)or die(mysql_error()); if($bd) { echo "DATA SUBMITED"; /*header("location:thank.php"); */ } else { echo "DATA NOT SUBMITED"; } mysql_close($con); ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)