Not working..
-------------------------------
i create this php mysql database to post data but writes as invisible records..
------------------------------------------
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="demo"; // Database name
$tbl_name="demo"; // Table name
// Connect to server and select database.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$name = $HTTP_GET_VARS[name];
$hiscore = $HTTP_GET_VARS[hiscore];
// Insert data into mysql
$sql="INSERT INTO $tbl_name(name, hiscore)VALUES('$name', '$hiscore')";
$result=mysql_query($sql);
// if successfully insert data into database, displays message "Successful".
if($result){
echo "Successful";
}
else {
echo "ERROR";
}
// close connection
mysql_close();
?>
-----------------------------------------------------
and constuct 2 create 2 fields text box
and submit button with code...
AJAX | Request "http://localhost/score/score.php" (tag"")
-------------------------------------------------------
work but in mysql writes as invisible records