Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
PHP
$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);
?>
Posted
Updated 26-Feb-15 0:31am
v2
Comments
CPallini 26-Feb-15 6:31am    
Could you please elaborate?
Gilbertinino 26-Feb-15 6:48am    
I dont understand what do you mean?
CHill60 26-Feb-15 7:13am    
We don't understand what your problem is

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900