Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP and MySQL for beginners? Re: PHP and MySQL for beginners?

#73418
blue642
Member

I believe what you may be trying to ask is how to create tables in MySQL with PHP… So that if someone "installed" your code, they wouldn’t have to build the tables themselves… (like with WordPress, or other CMS’s, you just create a DB, and it works, creating it’s own tables… (Forgive me if I misunderstood.)

Firstly, I have been reading the following 2 books, which I would recommend…

http://www.sitepoint.com/books/phpant2/
http://www.sitepoint.com/books/phpmysql4/

(Chris & Mods, forgive me if I shouldn’t link to a store…)

anyhow, they are both great resources to get you going…

As far as a specific code sample something like this would work…

Code:

which came from another good resource (free…)

http://www.w3schools.com/php/php_mysql_create.asp