Page 1 of 1

Getting a parse error >.<

Posted: Tue Mar 09, 2004 1:15 pm
by Wuggy
include("common.php");
if(!($link_id = mysql_connect($db_host, $db_user, $db_password))) die(mysql_erorr());
mysql_select_db($db_name);
$wdbattle = mysql_query("SELECT * FROM wdbattle WHERE uid = 1);
$wdbattle = mysql_fetch_array($wdbattle);
$hp = $wdbattle[hp];
$hpleft = $wdbattle[hpleft];
$hpheal = "$hp - $hpleft";
mysql_query("UPDATE wdbattle SET hpleft=hpleft+$hpheal WHERE uid='$id'");

Parse error: parse error in /home/newbie/kiswebdesigns-www/wuggydesign/battle/hospital.php on line 13

I get a parse error, but what the hell is wrong, I've tried like everything, any ideas?[/php_man]

btw

Posted: Tue Mar 09, 2004 1:26 pm
by Wuggy
The parse error is the mysql query

Posted: Tue Mar 09, 2004 1:54 pm
by markl999
$wdbattle = mysql_query("SELECT * FROM wdbattle WHERE uid = 1");

You were missing the last "