Results 1 to 3 of 3

Thread: SQL Tables

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139

    SQL Tables

    I'm trying to install this code in either a php or via myphpadmin
    I don't know how to add the enum values of 1 2 3 and 4 so was thinking of doing it via a php script... how does that work

    PHP Code:
    CREATE TABLE users 
      
    userid int(25NOT NULL auto_increment
      
    first_name varchar(25NOT NULL default ''
      
    last_name varchar(25NOT NULL default ''
      
    email_address varchar(25NOT NULL default ''
      
    username varchar(25NOT NULL default ''
      
    password varchar(255NOT NULL default ''
      
    info text NOT NULL
      
    user_level enum('0','1','2','3'NOT NULL default '0'
      
    signup_date datetime NOT NULL default '0000-00-00 00:00:00'
      
    last_login datetime NOT NULL default '0000-00-00 00:00:00'
      
    activated enum('0','1'NOT NULL default '0'
      
    PRIMARY KEY  (userid
    TYPE=MyISAM COMMENT='Membership Information'

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    If you have myPHPAdmin, you should be able to copy it, paste it, and run it.,


    TG
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2003
    Location
    Auckland
    Posts
    1,139
    Originally posted by techgnome
    If you have myPHPAdmin, you should be able to copy it, paste it, and run it.,


    TG
    Arr man I'm dumb... didn't even think about that option

Posting Permissions

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



Click Here to Expand Forum to Full Width