pls see the message

Discussion in 'MySQL' started by riyazbasha, Jan 27, 2010.

  1. #1
    say me how to set/create field for these in Myphpadmin.database

    I want to create a register form,so first i have to create field in Myphpadmin.database
    ,how?

    Waiting for ur reply.

    1)username
    2)first name
    3)lastname
    4)password
    5)confirm password
    6)date of birth -(date -month-year)
    7)gender
    8)alternate email
    9)country -(selecting country)

    regards
    riyaz.
     
    riyazbasha, Jan 27, 2010 IP
  2. GSP

    GSP Greenhorn

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    CREATE TABLE 'users' (
    'id_user' INT NOT NULL AUTO_INCREMENT ,
    'name' VARCHAR( 128 ) NOT NULL ,
    'lastname' VARCHAR( 128 ) NOT NULL ,
    'email' VARCHAR( 64 ) NOT NULL ,
    'alternative' VARCHAR( 64 ) NOT NULL ,
    'country' VARCHAR( 64 ) NOT NULL ,
    'username' VARCHAR( 16 ) NOT NULL ,
    'password' VARCHAR( 32 ) NOT NULL ,
    PRIMARY KEY ( 'id_user' )
    )

    Like this?
     
    GSP, Jan 27, 2010 IP
  3. riyazbasha

    riyazbasha Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks,so kind of you, one last favour would u send same for(date of birth,image verification).

    i will be waiting for ur reply.
     
    riyazbasha, Jan 27, 2010 IP
  4. taminder

    taminder Peon

    Messages:
    581
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    add a date of birth field in the above example.

    the image verification (aka CAPTCHA) doesn't have anything to do with database. you do on your page. there are many available for free.

    here's a good one in PHP:
    http://www.phpcaptcha.org/
    Code (markup):
     
    taminder, Jan 27, 2010 IP
  5. riyazbasha

    riyazbasha Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thankx for the message,

    what i should select in (type field box and default box) for date of birth

    pls let me know.
     
    riyazbasha, Jan 27, 2010 IP
  6. GSP

    GSP Greenhorn

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #6
    'date' VARCHAR( 10 ) NOT NULL
     
    GSP, Jan 28, 2010 IP
  7. riyazbasha

    riyazbasha Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thanks for the message, Can i keep ( Default .timestamp)

    because i have list menu for date of birth.
     
    riyazbasha, Jan 29, 2010 IP
  8. jennifer145

    jennifer145 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    there are 2 way to create a database in mysql
    1) using command prompt.
    2)using phpadmin.
    where u specify ur field name that you gives.
     
    jennifer145, Feb 1, 2010 IP