GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Apr-2006, 02:13
evans123 evans123 is offline
New Member
 
Join Date: Apr 2006
Posts: 1
evans123 is on a distinguished road

Parse error, unexpected T_VARIABLE


ill highlight da line 20 for you!

PHP Code:

//create the table, customize it if you want
$query = 'CREATE TABLE highscores(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY(id),
gameid INT(4) NOT NULL,
name VARCHAR(15) NOT NULL,
score INT(15) NOT NULL);'
$result = mysql_query($query);
echo "Table Created!";
?> 

Last edited by JdS : 13-Apr-2006 at 09:34. Reason: Please insert your Php code between [php] & [/hp] tags
  #2  
Old 13-Apr-2006, 07:58
TurboPT's Avatar
TurboPT TurboPT is offline
Regular Member
 
Join Date: Feb 2006
Location: Atlanta, GA
Posts: 936
TurboPT is a jewel in the roughTurboPT is a jewel in the roughTurboPT is a jewel in the rough

Re: Parse error, unexpected T_VARIABLE


It appears that the semi-colon in your create table statement is out of place. There is no semi-colon terminating the assignment statement to $query.
__________________
Use the force...read the source!!
WYCIWYG -- what you code is what you get!
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in ukrspp21 MySQL / PHP Forum 31 04-Jul-2006 21:41
Parse Error $end ?? :S d3mps3y MySQL / PHP Forum 2 10-Mar-2006 12:04
Parse Error vigilantweather MySQL / PHP Forum 3 21-Feb-2006 12:24
Parse Error vigilantweather MySQL / PHP Forum 6 04-Feb-2006 13:15
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' quiescent MySQL / PHP Forum 7 13-Nov-2005 15:43

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 02:04.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.