Powered by:
FutureQuest Hosting


"...Remember being a youngster, mom or dad telling you "close the door"? Well the same applies to HTML ...."

Web Hosting
Shared       
Reseller     
VPS             
Dedicated 
Price:   $(US)
Space:     (MB)
Transfer:(GB)
Platform:


Advertise
Advertising Opportunities
Rate Card

Sponsor
Go Back   Webmaster Forums > Code Forum > PHP Forum


Reply
 
Thread Tools Rate this Webmaster Discussion
  #1  
Old 10-19-2009, 01:04 PM
Kid Kid is offline
Junior Member
 
Join Date: Oct 2009
Webmaster Discussions: 4
Rep Power: 1
Kid is on a distinguished road
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.


Reply With Quote
  #2  
Old 10-20-2009, 06:36 PM
jthayne's Avatar
jthayne jthayne is offline
Senior Member
 
Join Date: Aug 2008
Location: Texas
Webmaster Discussions: 487
Rep Power: 15
jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz. jthayne is the hardest working person in the biz.
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.
__________________
Be sure to click the reputation icon to give rep to the person who helped you.
Check out the following sites: www.inbutnotoftheworld.com and www.mythoughtexactly.com.
Reply With Quote
  #3  
Old 10-21-2009, 05:17 AM
Kid Kid is offline
Junior Member
 
Join Date: Oct 2009
Webmaster Discussions: 4
Rep Power: 1
Kid is on a distinguished road
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.
Reply With Quote
Reply
Sponsor

Bookmarks

Tags
php , table

Thread Tools
Rate This Thread
Rate This Thread:

 

Similar Webmaster Discussions
Thread Webmaster Discussion Starter Forum Replies Last Post
To create table in photoshop kajun CSS Forum 3 06-22-2009 02:25 AM
Inserting Multiple value of '<input>' to a table in PHP/MySQL JPhilS PHP Forum 0 01-29-2008 01:09 AM
create a table along the width of the sheet laks General Discussion 1 02-15-2004 01:24 PM
This is about a create database table? knightjt02 PHP Forum 1 08-07-2003 05:42 PM


All times are GMT -5. The time now is 04:46 PM.

Copyright © 1999 - 2009 Advanced HTML For Beginners and AHFB2000. All rights reserved.
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.