First PHP/MySQL Project Day 1: Connecting to MySQL
To get started, I first found an example to learn from. Then I learned about a few PHP functions, and then I learned my way around phpMyAdmin, and then I finally connected to my MySQL database with some PHP code! It was pretty time-consuming, but I shrunk it down to a seven-minute screencast:
Links for Connecting to MySQL
First of all, I’m using WAMP. See the links on PHP Day 1: Getting Started for more info on that.
From the PHP manual:
- PHP: MySQL Functions - This is where I found the example I’m using.
- PHP: mysql_connect
- PHP: exit
- PHP: mysql_error
- PHP: mysql_select_db
And here are the threads I started on a couple forums to ask why that code worked to connect to MySQL. Some of the replies were very helpful:
- Confused about connecting to MySQL with PHP - WebDesignForums.net
- A couple questions on using PHP to connect to MySQL - SitePoint Forums
I didn’t make much progress on my project, but I did learn a lot for one afternoon!



May 17th, 2007
Sounds like a good start. The only way to learning php and is my doing php projects and you are going in the right direction. Good luck.
August 30th, 2007
[…] adım PHP ve MySQL videoları. Real Player beta ile de offline olarak kaydedeiliyor
(No Ratings Yet) Loading […]
December 18th, 2007
[…] adım PHP ve MySQL videoları. Real Player beta ile de offline olarak kaydedeiliyor yazar Yenibelge | Sql | Geri […]