Jump to content


Photo

Creating database tables from PHP


  • Please log in to reply
3 replies to this topic

#1 Eiolon

Eiolon
  • Members
  • PipPipPip
  • Advanced Member
  • 357 posts

Posted 21 July 2006 - 04:14 PM

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.

#2 gluck

gluck
  • Members
  • PipPipPip
  • Advanced Member
  • 216 posts

Posted 21 July 2006 - 05:08 PM

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.
I'm back baby!

#3 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 21 July 2006 - 05:18 PM

There are very few tutorials on this, but here is a few.

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 this thread has a basic install script. Creating an install script isn't that hard.

#4 Eiolon

Eiolon
  • Members
  • PipPipPip
  • Advanced Member
  • 357 posts

Posted 21 July 2006 - 08:08 PM

Thanks, this seems to have done the job.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users