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
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Oakville
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Create table, is it possible? (PHP)

    Hi, I know that I can create a database using php, but can I create a table with fields on the fly?

    bool mysql_create_db ( string database name [, resource link_identifier])

    Thanks
    Steve

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Oakville
    Posts
    160
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i got it...

    mysql_query("CREATE TABLE test (a VARCHAR (1) not null , b VARCHAR (2) not null )");

    doh...



  •  

    Posting Permissions

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