PHP Connect to MySQL Database | 2 Methods

preview_player
Показать описание
Hey Guys Whats Up!

So many people requested me to show how to connect to the mysql database using the php code. So in this video I will show you 2 complete methods on how to connect to the database using the PHP code.

First method is using the simple mysqli_connect function and another is using the PDO class method. So we will see those 2 methods in detail in this video.

Hope it Helps!
@CodeFlix12

For more about these videos, subscribe to my channel CodeFlix.

Watch My Other Playlists:

Also If you want updated projects and codes follow :

Telegram Channel: CodeFlix

//connect to mysql database with php
//php connect to mysql database
//php connect to phpmyadmin database
Рекомендации по теме
Комментарии
Автор

Great quick video that showed EXACTLY what I needed. Thank you. And I also see you helping people with their issues in the comment section, always great to see this sort of stuff.

coltan
Автор

straight to the point and shown me exactly where I was going wrong. Thanks!

AstroFarsography
Автор

Thanks for the video series. Exactly what i was looking for not over complicated

rainlesscloud
Автор

Fatal error: Uncaught mysqli_sql_exception: Unknown database

rafhaellowixhomwad
Автор

You hit the nail by the head. Thanks bro.

anthonyifeanyichukwu
Автор

first method worked for me thank yooou so much saved my life. I had to run on my webhost to get the connection success.

Juanbits
Автор

In which folder is the database stored? Is it in the same folder where you store your php files, or do you create a subfolder like when you do to put CSS, JS or images for example, or is it somewhere else?

danidan
Автор

Thank you so much! Its very helpful <3

charllotegracesarzuelo
Автор

i have an exception like Uncaught mysqli_sql_exception: Access denied for user 'root'@'localhost' when i serve project. Can you help about that?

canwia
Автор

When i try to run both codes in the browser im getting a blank white screen does anyone know what would cause this?

kieranteets
Автор

Thank you
How we can connectd to 2 server for comparer data base in the diff server

raniakarim
Автор

hey so does it work it i put the page online? or will it only work in local

value_investing_indonesia
Автор

pls help he is sayind the database not exist but it exist i dont now what tp do

NextElonMusk
Автор

Fatal error: Uncaught Error: Class "mysqli" not found in Stack trace: #0 {main} thrown in on line 5
Why this problem is arising???

shovanchowdhury
Автор

Can you do a video of to display information from a form to show in the database who has signed in or registered..kindly ASAP urgent

vinnyjude
Автор

Can anyone send this php file as attachment

amalajosephinej
Автор

i can't sucess..by this process please help me dude....!

studiopuja
Автор

Make a video for login and register form

ashwintiwari
Автор

Make video apphp cms how to connect localhost

ashutoshgavali
Автор

Why does indian guys teach us simple and fast

scripttonight