Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder ttttt's Avatar
    Join Date
    Oct 2005
    Posts
    372
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stuck on creating tables

    Hi all!
    I'm a newbie with MySQL and I'm quite stuck with creating the tables I need in a db.
    Do you think you could help me with the php code to create a table: with an id, username, password and level (integar) field.
    Thanks,
    EDIT: sorry about the typo in the title! I don't think I can change it though...
    ttttt
    http://openoffice.org/- Microsoft Office without the Microsoft.
    [home page][forum]
    Versatile, free software

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,549
    Thanks
    8
    Thanked 1,095 Times in 1,086 Posts

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,280
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Do you need to create these tables on the fly dynamically or do you just need some tables created? If the latter then you can use something like phpMyAdmin to create them when you need them. With phpMyAdmin you can also generate the necessary SQL in order to do it if you need that for later use in a script.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    I would get a book on MySQL, there is lots of MySQL data types that you will need to know with their descriptions and size. My book has 20 listed, five are listed below.

    CHAR
    VARCHAR
    TINTTEXT
    TEXT
    MEDIUMTEXT
    Leonard Whistler


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •