PHP Tutorial (& MySQL) #25 - Connecting to a Database

preview_player
Показать описание
Hey gang, in this PHP & MySQL tutorial I'll show you how to connect to our new database from the PHP code.

----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🤑🤑 Donate


🎓🎓 Find me on Udemy

Рекомендации по теме
Комментарии
Автор

Remember guys, turn off adblock for these videos. Loving the MySQL introduction, clearest I've encountered so far.

Anhjje
Автор

OMG! The simplest the easiest way of showing how to connect to database on PHP. I got so confused before. Where have you been Shaun? :) Thank you! Hope you'll teach us some PDO too. Good job.

fahrifoxtrot-whiskey
Автор

your approach to leave PDO for later is absolutely right :)
This is simpler and will show us how PDO is better by giving us a reference. Other tuts just show directly the PDO and state that PDO is better than the older way but if we never know what the old way is, we would not be able to appreciate PDO. Thanks so much for this. you are awesome 😊😊😊

MrRicharddaniel
Автор

You are an amazing person for taking the time to put this together for all of us wanting to learn!

luke
Автор

Nice Tutorial Shaun, Thank you so much!

atishmhatre
Автор

It is a brilliant tutorial. Many thanks much appreciated.

denizderman
Автор

you are a lifesaver man !! thank you so much hope you keep going with your successful career

aboodshrshar
Автор

Really great and easy to follow along!

migueldemaria
Автор

Sir, what are the changes that need to be done by swifting from locathost to actual host inorder to connect mySQL ???

rajkumarr
Автор

I think this tutorial give me more knowledge all about. The codes and the I dea!!

jheydsabanal
Автор

You are the best thing since sliced bread, mate!!! You da Ninja!!! :)

thomasedwardking
Автор

I manually installed apache, php & mysql. So how do I point mysqli_connect() function to the directory in MySQL where my database folder is resided? Currently, my database and all the default installed database by MySQL are in "C:\ProgramData\MySQL\MySQL Server 8.0\Data".

sorcererstone
Автор

Sir how i fix it please inform me
error: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password] in...

RashidKhan-ssem
Автор

you are literately AWESOME!, i wish really if you can make tutorials for OOP MySQLi and how i can use the database classes.

anansoli
Автор

Hello, i can not use the mysqli_connect function. When i run the code, the following error appears: Uncaught Error: Object of type mysqli is not callable in Stack trace: #0 {main} thrown in on line 8

vagzaf
Автор

1:05 Do I really need to check global privilege? I thought this is for the control over other databases, correct?

tea
Автор

2:15 > MYSQLi vs PDO
Do you have the PDO version of the tutorial ?

pahtashow
Автор

Never know how do you created the templates/header.php. Mine is missing because is not created. I woukd like to know how to do that. Thanks.

RomilaRobert
Автор

Can I connect my website info using python? what alternatives to php are there?

floppyears
Автор

I think u should use the oop approach for mysqli or use PDO

alvinfebriando