OK...i have this:
And when i print "{$rowp2h['health']}\n"; nothing shows up!
here is the full page : http://pastebin.ca/112842
PHP:
//PLAYER 2
$id = $_POST['id'];
$whatp2 = mysql_query("
SELECT player2
FROM duels
WHERE id = '$id'
") or die ("Error1");
$rowwp2 = mysql_fetch_row($whatp2);
$player2 = "$rowwp2[0]\n";
$play2 = $player2;
$p2h = mysql_query("
SELECT *
FROM users
WHERE `username` = $play2
") or die ("Error2" . mysql_error() . "");
$rowp2h = mysql_fetch_array($p2h);
print "{$rowp2h['health']}\n";
And when i print "{$rowp2h['health']}\n"; nothing shows up!
here is the full page : http://pastebin.ca/112842













