Ok, I'm going to post what I have for my .capx for the saving variables to a database and the php for it.
FILE:
4shared.com/file/885mRUrE/ajaxsave.html
PHP:
<?php
include('connect.php');
if ($_GET['mode']=="save") {
$score = $_GET['score'];
$level = $_GET['level'];
mysql_select_db("p668534r_members", $con);
mysql_query("UPDATE ajax SET ajax_score = '$score', ajax_level = '$level'
WHERE username = 'b781rev'");
if (!mysql_query($sql,$con))
{ die('Error: ' . mysql_error()); }
mysql_close($con);
}
if ($_GET['mode']=="load") {
mysql_select_db("p668534r_members", $con);
$result = mysql_query("SELECT * FROM ajax WHERE username='b781rev'");
while($row = mysql_fetch_array($result))
{
echo $row['ajax_score']."|".$row['ajax_level']."|";
}
mysql_close($con);
}
?>