Parse error: parse error in /home/hitoshi/public_html/heal_user_hp.php on line 13
I tryed this too :
<?php
$page_title = 'HP';
include ('templates/header.inc');
require_once ('mysql_connect.php');
$id = 1
$sql = 'SELECT users FROM HP WHERE id = $id';
$res = mysql_query($sql);
$data = mysql_fetch_array($res);
$hp = $data[HP]
$heal = $hp + 20
$hp2 = $heal
$sql_up = "UPDATE users SET HP = $hp2 WHERE id = $id ";
$result_up = mysql_query( $sql_up ) or die( mysql_error() );
mysql_close();
?>
<script>
alert( 'RECOVERED 20HP!' );
</script>
I thought that prehaps the $hp being used twice had messed it up but... it still doesnt work lol and i get the same error