So I modified my code a bit and while running it is giving:
Forbidden
You don't have permission to access /main.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
This is the part that has the problem it seems:
<?
$map_query = mysql_query("SELECT * FROM user_map WHERE username='$session_username'");
while($map = mysql_fetch_array($map_query)){
$player[continent] = $map["continent"];
$player[xPos] = $map["xPos"]; $player[xLoc] = $map["xLoc"]; $player[xMap] = $map["xLoc"];
$player[yPos] = $map["yPos"]; $player[yLoc] = $map["yLoc"]; $player[yMap] = $map["yLoc"];
};
if (isset($_POST)){
$move[val] = @key($_POST["move"]);
$move = $move[val];
$loc[num] = substr($move, 0, -1);
$loc[let] = substr($move, -1);
$ll = $loc[let].'Loc';
$lp = $loc[let].'Pos';
mysql_query("UPDATE user_map SET $ll='$player[$ll]'-'1', $lp='$player[$lp]-'1' WHERE id='$player[id]' AND username='$session_username'");
header("Location: ?p=map&view=local");}
?>
What is wrong?