installing a MySql database and talbes using php

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

i want to make a page that will set up a database and all the talbes in it for my scripts im making, is it posible?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

Yes it is very possible.
You should probably search the php.net site before asking at a forum, but you came here first so.
http://us2.php.net/manual/en/ref.mysql.php
Just go there, there are functions called mysql_create_db() and you can make your database with that, if your user has those permissions, then you just run a mysql_query to make the tables.
For proper syntax usage on creating a table go here:
http://dev.mysql.com/doc/mysql/en/CREATE_TABLE.html
Hope that was of some help to you.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 167 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.