Jump to content

Archived

This topic is now archived and is closed to further replies.

Eiolon

Creating database tables from PHP

Recommended Posts

I've finished my first PHP script but now I would like to make it so its easy for people to install.  Whenever I install forum software they always have a PHP page where you enter your connection info and it will automatically create the table structures in the database for you.  Are there any tutorials on how to do this?  Thanks for your help.

Share this post


Link to post
Share on other sites
I don't think I come across any tutorials as such.
I think you are need somethink like phpMyAdmin. It shouldn't be an issue. You are just trying to perform DDL operations through the scripts.

Share this post


Link to post
Share on other sites
There are very few tutorials on this, but [url=http://www.pixel2life.com/tutorials/All/All/?ba=0&a=7&c=1&f=15&c=1&d=1&ss=install]here is a few[/url].

The best way to grasp how to do this, is to take a part an existing installer script, and see how they do it. Thats how I learnt how to create installer scripts.

Also [url=http://www.phpfreaks.com/forums/index.php/topic,100990.msg399220.html#msg399220]this thread[/url] has a basic install script. Creating an install script isn't that hard.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.