Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-14-2005, 02:52 PM
millwalll's Avatar
Webmaster Talker

Posts: 674
Name: James
Location: KENT
Trades: 3
thi is wht i typed CREATE TABLE users(

user_id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT ,
first_name VARCHAR( 15 ) NOT NULL last_name VARCHAR( 40 ) NOT NULL ,
email VARCHAR( 40 ) ,
PASSWORD CHAR( 16 ) NOT NULL ,
registration_date DATETIME NOT NULL ,
PRIMARY KEY ( user_id )
)


and got this any help

#1064 - 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 'last_name VARCHAR(40) NOT NULL,
email VARCHAR(40),
password C
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
 
Register now for full access!
Old 07-14-2005, 03:07 PM
pushedtomb's Avatar
Super Talker

Posts: 100
Name: Nathen
Location: Casnewydd, De Cymru, UK
Trades: 0
PHP Code:
CREATE TABLE `users` (
 `
user_idMEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT ,
 `
first_nameVARCHAR15 NOT NULL ,
 `
last_nameVARCHAR40 NOT NULL ,
 `
emailVARCHAR40 NOT NULL ,
 `
PASSWORDCHAR16 NOT NULL ,
 `
registration_dateDATETIME NOT NULL ,
 
PRIMARY KEY ( `user_id` )
 ) 
TYPE MYISAM 

thats what it should be

PHP Code:
             $sql  'CREATE TABLE `users` ('
          
'   `user_id` MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT, '
          
'   `first_name` VARCHAR(15) NOT NULL, '
          
'   `last_name` VARCHAR(40) NOT NULL, '
          
'   `email` VARCHAR(40) NOT NULL, '
          
'   `PASSWORD` CHAR(16) NOT NULL, '
          
'   `registration_date` DATETIME NOT NULL,'
          
'   PRIMARY KEY (`user_id`)'
          
' )'
          
' TYPE = myisam'
and there it is in php coding for pages
__________________

Please login or register to view this content. Registration is FREE


Quote:
- "I've often wondered how MS can say that other software "isn't compatible" with MS when MS stuff isn't even compatible with other MS stuff" - quote from Daily Thing.com
pushedtomb is offline
Reply With Quote
View Public Profile
 
Old 07-14-2005, 05:06 PM
millwalll's Avatar
Webmaster Talker

Posts: 674
Name: James
Location: KENT
Trades: 3
hi what the bottom one for also ive done that what are the ` these for and what button get them when do i knwo where to put them
millwalll is offline
Reply With Quote
View Public Profile Visit millwalll's homepage!
 
Reply     « Reply to php my admin

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11509 seconds with 11 queries