PHP MySQL Tutorial: Connect to a MySQL Database -HD-

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
58,408
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 29, 2010

In this tutorial, you will learn how to connect to a MySQL database using PHP.

Be sure to SUBSCRIBE because there will be a new tutorial every week.

Follow me on Twitter @RiverCityGraphx

Like us on on facebook: http://on.fb.me/i8UQpt

Suggest tutorials at http://www.rivercitygraphix.com

For project files, help forums, and more check out the website at http://www.rivercitygraphix.com

For business related inquires contact us at rivercitygraphix@yahoo.com

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (RiverCityGraphix)

  • When I write this in, isnt it available for everyone to see? and like... that shouldn't happen right. If they just view source they can see all that info for mySQL database :P

  • @bitmp44 Nope. PHP and MySQL are hidden from the view source.

  • i meant do u have to use dreamweaver?

  • @RealityFuzion Nope. You can use any html or php editor. You could even type it in NotePad and it would work.

see all

All Comments (81)

Sign In or Sign Up now to post a comment!
  • i did exactly like you showed, but i coudnt connect to mysql..can you help me?

  • never mind i got it working, i needed to put a mysql dll file in c:\windows and then the success displayed, many thanks for the video

  • Why do you use the @ sign? I wasn´t able to find it in the PHP documentation.

  • @RiverCityGraphix awesome thanks. So using javascript for any sort of form validation is a bad idea :P true? but php is safe, and thats why everyone uses it. ish. I've been reading about some exploits with the include() method .

  • Can someone help ? I did this ive got the mysql file inside the folder and everything, i have checked many times, and the $db_name is correct as the actual sql db, but it still says "no database" ? and if i change the $db_host/username/pass it comes out with "Could not connect to mysql..." which means that it's working at that part ?

  • I followed all the instructions right up until the end. When I finally typed in localhost/mysql_connect I got an access forbidden page, and now even when I try to access localhost, I get an access forbidden page. It was working fine before I followed all of the instructions. Can anyone help?

  • once again, great!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more