Forum Moderators: coopster

Message Too Old, No Replies

how would I make a code that inserts tables on mysql?

         

electricocean

9:20 am on Feb 21, 2005 (gmt 0)

10+ Year Member



I need to make a code where someone can type in a sentence and click add and it will add a table or whatever in the mysql file.

How would i do that?

jatar_k

6:07 pm on Feb 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



in essence all you have to do is pass the query to mysql and it will do whatever you like.

It is difficult to be more specific with out knowing exactly the scenario in which 'whatever' will be executed.

If this is a public feature then you will need to watch for sql injection so that you don't inadvertantly give unknown malicious users access to your db.

electricocean

7:24 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



It's going to be password protected

kuzjph

3:51 am on Feb 22, 2005 (gmt 0)

10+ Year Member



for mysql and php :
[freewebmasterhelp.com...]

for the login : [devarticles.com...]

That should be enough.