42 users online (0 members and 42 guests)  


  Results 1 to 3 of 3

Related

  1. Replies: 1
  2. To create table in photoshop    Forum: CSS Forum
    Replies: 3
  3. Replies: 1
  4. create a table along the width of the sheet    Forum: General Discussion
    Replies: 1
  5. This is about a create database table?    Forum: PHP Forum
    Replies: 1
  1. #1
    Kid's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2009
    Posts
    4

    create table in mysql from php forms

    hi to all.. i wanna know if this is possible. Can we create a table in mysql database with a name based on user's input from a form? for example in a form a user must enter their names and password, lets say the name is Timo and pass 1234. Then when Timo click the submit button, automatically Timo's table are created in the db with Timo's name. So now there's a table named Timo in db. Of course Timo's name and password are saved in other table in the same db. If it's possible, can you guys share some examples.

    Thnx for viewing and x1000000000 thnx if you reply.

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: create table in mysql from php forms

    Yes you can do it. It is a simple SQL query to do it:

    CREATE TABLE "Timo"

    This should be a simple thing if you know how to run SELECT or INSERT queries using PHP.

  3. #3
    Kid's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2009
    Posts
    4

    Re: create table in mysql from php forms

    Thank you very much. I'm new to php, js and html. Still need to learn a lot. Thnx again.



Tags for this Thread