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 […]
November 11th, 2008
i want online job for php & mysql
i am expert programmer give the project how many pay me
December 30th, 2008
I am well skilled on PHP & Mysql & flash.
I try to get project on web design. Please help me.
January 27th, 2009
GOOD… Kp it up
January 29th, 2009
how to write code for mp3 player connecting mysql&flash player using php
March 8th, 2009
Im devolping my acadamic project on php and mysql, on every step i take ur support and im very thank ful to u. thank you
May 29th, 2009
Wow, great job, for a first video it was amazing, you learn so fast, continue… I’m sure you will be a great programmer.
greets from peru.
July 3rd, 2009
Wow, great job, for a first video it was amazing, you learn so fast, continue… I’m sure you will be a great programmer.