Jump to content

Error...


Drezard

Recommended Posts

Need help with this error:

 

24.  $name = $array_three[0];

26.  $array_four = "SELECT race, level, hp, mindamage, maxdamage, exp, gold FROM game_creatures WHERE name='$name'";
 
28.  $result_four = mysql_query($query_four)
 
30.  $array_four = mysql_fetch_array($result_four);

32.  }

 

ERROR:

 

Parse error: syntax error, unexpected T_VARIABLE in C:\Program Files\xampp\htdocs\wintersword\core\combat\combat.class.php on line 30

 

 

Thanks, Daniel

Link to comment
https://forums.phpfreaks.com/topic/44053-error/
Share on other sites

is this right as well:

24.  $name = $array_three[0];

26.  $array_four = "SELECT race, level, hp, mindamage, maxdamage, exp, gold FROM game_creatures WHERE name='$name'";
  
28.  $result_four = mysql_query($query_four)
  
30.  $array_four = mysql_fetch_array($result_four);

 

Shouldnt it be:

 

24.  $name = $array_three[0];

26.  $query_four = "SELECT race, level, hp, mindamage, maxdamage, exp, gold FROM game_creatures WHERE name='$name'";
  
28.  $result_four = mysql_query($query_four); //and as frost110 said ;
  
30.  $array_four = mysql_fetch_array($result_four);

Link to comment
https://forums.phpfreaks.com/topic/44053-error/#findComment-213928
Share on other sites

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.