<?
$varfile = @require("Variables.php"); if(!varfile) {
print "Variables.php file not found";
}
@mysql_connect($server,$username,$password) or die("Unable to connect to MySQL Server ('mysql_error())");
@mysql_select_db($savingdatabase) or die("Unable to find database");
$selectcharacter = "SELECT * FROM 'SavedCharacters' WHERE `key` = '$key'";
$getquery = mysql_query($query);
$querynumrows = mysql_num_rows($getquery);
$number = 0;
while($number < $querynumrows) {
$data = mysql_result($getquery,$number,"data");
$number++;
}
@mysql_close();
?>
I'm getting: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a7409624/public_html/Load.php on line 10
Your query is not $query, it's $selectcharacter.