I hope someone can help me with this.
Right now I have this which writes the data from the js into the end of a file called score.dat.
strURL = "save.php" + "?s=" + nScore + "&m=" + escape(strMemberName) + "&p=" + nPro + "&t=" + nSeconds + "&c=" + nClicks + "&d=" + escape(strDate);
This is "save.php" file
$score = fopen("score.dat", "a");
foreach($HTTP_GET_VARS as $var)
fputs($score, "$var" . chr(9));
What i would like to do is have it insert the data into a mysql database table instead. Using something like
$sql = "INSERT INTO score (score,members_id,pro,seconds,clicks,date) VALUES ('$var1','$var2','$var3','$var4','$var5','$var6';
$result = mysql_query($sql);