Hello. I get this same error.
Here's some background. I am trying to install a php-script. When i first run the install, it went nicely through saying that the installation was ok. Then I went to the admin page, which gave me an error "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource". Also, when I go to my sqlyog to look at the database and the newly created tables, I can't find them. It didn't create any tables(or I can't see them). After that I was guided in IRC to append $query = mysql_query($sql)|| die mysql_error(); the bolded part in these lines.( || die mysql_error(); was not in original install.php-file) After that when I ran the install, I got that T_STRING problem on that line.
#
Parse error: syntax error, unexpected T_STRING in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\wlmod\install.php on line 27
#
#
here are lines 26 starting with $sql and line 27 starting with $query:
#
#
$sql = "CREATE TABLE $playerstable (player_id int(10) DEFAULT '0' NOT NULL auto_increment, name varchar(20) DEFAULT '' NOT NULL, passworddb varchar(10), approved varchar(10) DEFAULT 'no', mail varchar(50), icq varchar(15), aim varchar(40), msn varchar (100), country varchar(40), rating int(10) DEFAULT '1500', games int(10) DEFAULT '0', wins int(10) DEFAULT '0', losses int(10) DEFAULT '0', points int(10) DEFAULT '0', totalwins int(10) DEFAULT '0', totallosses int(10) DEFAULT '0', totalpoints int(10) DEFAULT '0', totalgames int(10) DEFAULT '0', rank int(10) DEFAULT '0', streakwins int(10) DEFAULT '0', streaklosses int(10) DEFAULT '0', ip varchar(100), PRIMARY KEY (player_id))";
#
#
$query = mysql_query($sql)|| die mysql_error();
My guess is that the line 26 has some syntax problems, or my mysql 6.x is some how messed up or non-compliant(to not make those tables)
This script is rather old, and I tried to e-mail the maker of the script aswell, but I thought I'll ask here too.
thx