Help - Search - Members - Calendar
Full Version: How to connect my simple website to a mysql database?
HTMLHelp Forums > Programming > Databases
Jeena
Hello,

I need to connect my site to a mysql database with some php code. Is there any advice out there that could assist me? I have created my database tables but yet to implement, do i need to download mysql and implement the tables in mysql then connect to my site with some php code???

______________________

T shirts printing
tee shirt printing


Brian Chandler
How have you "created" the tables without using mysql?

You need to have mysql / php running on the server, then you need to write bits of php to access the database and generate the appropriate html output. You could look for an online php/database tutorial (sorry, no specific recommendations; I read a not-terribly-good book). Then the php manual http://php.net is generally very easy to use, and typically more helpful than the mysql documentation.

Otherwise your question is rather vague and general... happy.gif
Frederiek
I recommend you read through the articles "PHP 101: PHP For the Absolute Beginner" at http://devzone.zend.com/node/view/id/627.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.