Jump to content

[SOLVED] Parse error: syntax error, unexpected T_STRING


gamesmstr

Recommended Posts

Ok.  This is driving me crazy.  Something in this section is giving me an error.  The offending line is supposedly the red line.

 

if ($gold > 0){

  $tradeacct=mysql_query("select * from tradeaccount where id = '$sendid'");

  $tradeamt = mysql_fetch_array($tradeacct);

  if (!$tradeamt[id]){

    mysql_query("insert into tradeaccount (id,gold) values ('$sendid','$gold')");

  }

  else {

  mysql query("update tradeaccount set gold=gold+$gold where id='$sendid'");

  }

}

 

Now what is strange is that the line below this works perfectly.

 

mysql_query("update userdb set gold=gold+$gold, rkeys=rkeys+$rkeys, hacks=hacks+$mythril, elixir=elixir+$elixir, npccreds=npccreds+$npccreds,emblems=emblems+$emblems, syphon=syphon+$syphon, nectar=nectar+$nectar where id='$sendid'");

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.