How to connect my simple website to a mysql database?
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???
sorry but new to this, thanks in advance.
You should read the W3Schools guide on PHP MYSQL
http://www.w3schools.com/PHP/php_mysql_intro.asp
is your website php base? if so then there should be a config.php on your files open it and enter your mysql database username, password and host.
http://lmgtfy.com/?q=mysql+php+connect
google is your friend, use it before you ask here.
Here’s how you do it.
http://www.tizag.com/mysqlTutorial/mysqlconnection.php
Go to www.web2coders.com, scroll down, click on "login script" and download the zip file.
This is a login script: it has all the required codes to create, read, search, update a mysql database.
Read and understand it, and you will soon be on your way to use mysql.