It appears you have not yet registered with our community. To register please click here...


Syntax error

This is a discussion on Syntax error within the HTML & CSS forums. Topic: Anyway.. i have this problemo.. PHP Code: $CreateTables = "CREATE TABLE 'administrator' ( 'uname' VARCHAR( 15 ), 'pword' VARCHAR( 15 ), 'email' VARCHAR( ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Display Modes
Old 04-22-2008, 12:16 PM   #1 (permalink)
 
Status: Junior Member
Join Date: Jan 2008
Posts: 6
Trader Rating: (0)
pomader is on a distinguished road
TD$: 70.00
Donate
Default Syntax error
Anyway.. i have this problemo..


PHP Code:
$CreateTables = "CREATE TABLE 'administrator' (
'uname' VARCHAR( 15 ),
'pword' VARCHAR( 15 ),
'email' VARCHAR( 50 ),
'lastlogin' VARCHAR( 25 )
)

CREATE TABLE 'files' (
'id' INT( 5 ) AUTO_INCREMENT ,
'filename' VARCHAR( 50 ),
'size' VARCHAR( 50 ),
'mime' VARCHAR( 50 ),
'created' VARCHAR( 50 ),
'lastedit' VARCHAR( 50 ),
PRIMARY KEY ( 'id' )
)

CREATE TABLE 'history' (
'id' INT( 5 ) AUTO_INCREMENT ,
'filename' VARCHAR( 50 ),
'created' VARCHAR( 50 ),
'lastedit' VARCHAR( 50 ),
'action' VARCHAR( 50 ),
PRIMARY KEY ( 'id' )
)
";
$CreateQuery = mysql_query($CreateTables);

Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''administrator' ( 'uname' VARCHAR( 15 ), 'pword' VARCHAR( 15 ), 'email' VARCH' at line 1

i have no idea how to fix it..
maybe someone can help me
_________________
simulation games georgia fha refinance
pomader is offline   Reply With Quote
Old 06-03-2008, 06:19 AM   #2 (permalink)
 
Status: Junior Member
Join Date: Jun 2008
Posts: 24
Trader Rating: (0)
kickass is on a distinguished road
TD$: 165.00
Donate
Default Re: Syntax error
According to the message i can't see any of the error in your table make sure that your table syntax is correct and try to create it again and if there is no solutions you are getting or you feel that you have forgot some of the codes then i think you should simply go to the website w3schools for further information.
kickass is offline   Reply With Quote
Old 06-19-2008, 01:12 PM   #3 (permalink)
 
Status: Junior Member
Join Date: Jun 2008
Posts: 3
Trader Rating: (0)
abby981 is on a distinguished road
TD$: 30.00
Donate
Thumbs up Re: Syntax error
Quote:
Originally Posted by pomader View Post
Anyway.. i have this problemo..


PHP Code:
$CreateTables = "CREATE TABLE 'administrator' (
'uname' VARCHAR( 15 ),
'pword' VARCHAR( 15 ),
'email' VARCHAR( 50 ),
'lastlogin' VARCHAR( 25 )
)

CREATE TABLE 'files' (
'id' INT( 5 ) AUTO_INCREMENT ,
'filename' VARCHAR( 50 ),
'size' VARCHAR( 50 ),
'mime' VARCHAR( 50 ),
'created' VARCHAR( 50 ),
'lastedit' VARCHAR( 50 ),
PRIMARY KEY ( 'id' )
)

CREATE TABLE 'history' (
'id' INT( 5 ) AUTO_INCREMENT ,
'filename' VARCHAR( 50 ),
'created' VARCHAR( 50 ),
'lastedit' VARCHAR( 50 ),
'action' VARCHAR( 50 ),
PRIMARY KEY ( 'id' )
)
";
$CreateQuery = mysql_query($CreateTables);

Quote:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''administrator' ( 'uname' VARCHAR( 15 ), 'pword' VARCHAR( 15 ), 'email' VARCH' at line 1

i have no idea how to fix it..
maybe someone can help me
_________________
simulation games georgia fha refinance
check out the semicolons u used...
abby981 is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
error smart 2008 key regcure serial Promotion Techniques 0 12-13-2008 03:09 AM
Free PC Error Repair regcure serial Promotion Techniques 0 12-12-2008 11:04 PM
Powerful Error Cleaner regcure serial Promotion Techniques 0 12-12-2008 10:57 PM
Regcure the registry scannerFree Registry Error Scan regcure serial Promotion Techniques 0 12-12-2008 09:23 PM
Registry error scanner regcure serial Promotion Techniques 0 12-12-2008 09:18 PM


Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0