36: How to connect to a database in PHP | PHP tutorial | Learn PHP programming

How to connect to a database – PHP tutorial. Today we are going to learn how to connect to a database from a website using PHP. In these lessons we will learn how to access a database, and how to get data from a database.

Download lesson files: http://mmtuts.net/course.php?c=php&l=36

mmtuts is a YouTube channel that focuses on teaching beginner and advanced courses in various multimedia related skills.
We plan to make tutorials available on programming, video production, animation, graphic design, and on software such as the Adobe Creative Cloud programs.

PHP for beginners is a how to series that teaches the PHP coding language to people who are just starting out learning programming. The course teaches how PHP scripting can be made easy and teaches how to build many apps such as a login system, a comment section, how to upload images, how to create users in a website, and much more. Creating dynamic websites with PHP is easy and should not be seen as otherwise, which is why we want to explain the language in a easy to understand way for beginners.

If you have suggestions on new courses, or specific lessons within existing courses you would like to see, then feel welcome to submit them in the comment section or in a private message. ALL suggestions will be seen, but not all will be replied to since we get quite a few every day.

Comments

Pascu Laurentiu says:

PDO and OOP :)

Pak Home says:

my php variable color is white, your green why?

Tim Ardan says:

mmtuts, what sublime theme are you using?

Николай Николов says:

Great tutorials! Thank you!

RayBerQ says:

Hey mmtuts, I recently watched your complete login system video and have created the page and it’s working locally on my computer. However I want to host the site on Heroku and don’t know much about databases or much php. Do you know how do connect my phpmyadmin xampp database with Heroku? They recommend using ClearDB for handling databases if that makes a difference.

Puneet Sharma says:

please upload the full online shopping website with database, without WordPress,I want project in HTML CSS SQL PHP BOOTSTRAP JavaScript ,please me the zip file with database , reply me as soon as possible thank you please upload the video in slowly in step by step, I m waiting ur repsonce, thank you?

darro van Lier says:

Hey man, i love your tutorials, but i really think you should step over to using pdo in your tutorials. we both know that mysqli willbe outdated soon and allot of people can benefit from you using pdo instead of msqli

Zire says:

Love your tutorials! I learnt html thanks to you!

lardosian says:

Is this a re-upload, I’m confused!

Omar Abdul says:

thanks

Surin Farmwest says:

I was using your previous method:-

ReneMar Remorosa says:

Lol, after the previous episode, your voice changed from energetic to a more grown man from this new episode XP

Tech mad says:

sir,can you please make a video on creating a user profile in php?

jones eugene says:

Thanks .can you do a video on how to make your files downloadable using php

Arda Sargin says:

How to make a search engine ?

Ted says:

Has anyone ever told you that you look like a younger Elon Musk?

Brian Senior says:

great videos, can you show us how to host a php website on hostgator that uses a database

Write a comment

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours