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 2 of 2

Thread: table...??

  1. #1
    New Coder
    Join Date
    Dec 2003
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    table...??

    I need to create a new table in the blobsy db, naming it tb_blobsy_banlist. Add two fields to this table:
    Email [varchar(255), not null]
    Msg [varchar(255), not null]

    how do i do this??

  • #2
    New Coder
    Join Date
    Sep 2003
    Location
    Sweden
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If this is a "one-time" thing, and you have acces to the db I guess the easiest way is to use phpMyAdmin.

    If you want to do it by a script try something like:

    PHP Code:
    $conn_id mysql_pconnect(ypur_hostypur_useryour_password) or die(mysql_error());
    mysql_select_db(blobsy) or die(mysql_error());

    mysql_query("CREATE TABLE tb_blobsy_banlist (

                email varchar(255) NOT NULL default '',
                msg varchar(255) NOT NULL default '',
                
    PRIMARY KEY(email)
    );"
    ) or die(mysql_error()); 
    [Windows took my virginity, Linux took my soul.]

    BoonZie


  •  

    Posting Permissions

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