Kahuki Webmaster Forum  

Go Back   Kahuki Webmaster Forum > Website Development & Management > Programming

Programming Discussions related to web programming languages and other related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-23-2008, 07:43 AM
Rookie
 
Join Date: Jan 2008
Posts: 9
dere44 is on a distinguished road
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
_________________
colognes acne natural treatment

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 04:54 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0