Easyly learn the code to insert data into MYSQL from PHP
$dbhost = localhost;
$dbuser = webjxcom; //Your mysql username
$dbpass = 123456; //Your mysql password
$dbname = database; //Your mysql library name
//Connect to local database
$conn = mysql_connect($dbhost,$dbuser,$dbpass);
if ($conn) {
echo "Connect to database successfully";
} else {
echo "Failed to connect to database";
}
//Open the database
mysql_select_db($dbname,$conn);
//Insert data
$sql="insert into test(test) values(ddddddd)";
$result=mysql_query($sql,$conn)or die(mysql_error());
echo "Open database";
//Close database
mysql_close($conn);
?>