Daniel was one of my first teachers in PHP, and learning some of the basic techniques was pretty easy to understand because of how he deliver the technicalities of some SPL.
East & West.....Danish Brain is the BEST in programming....Cause....They understand the problems CLEARLY....They go through the steps DEEPLY.....They explain the complex staffs EASILY.....and mmtuts is just Life Saving Awesome....More time I spend with you....More get addicted to know from you....Thanks....& All The Best...Thumbs Up..!!
You're missing out to wrap this up in a try catch. Also, it should be recommended to keep credentials inside a config file - even if you don't work with git/bigger teams, just for habbit reasons.
love the way that you remind some basic things time by time. like $this-> for property . Even though its basic but really effective for the beginners who might have forgot that and i am one of them.
Hi, I just want to thank you for the amazing tutorials of PHP, I learned so much from them, can you please make a video about the testing methods of a web application built with PHP, A lot of people complete the projects and don't have an idea how to test the web application properly and I'm one of them, thanks
Mr. Daniel, I have learned a lot from you especially oop php. Could you make another video teaching oop php with mvc, database, and using transaction, commit, rollback feature. Thank's
Thanks! Great tutorial! Wonderful explained! Also imortant to make things easier with character modes, add to the Dbh class: private $charset = 'utf8mb4'; and add it to $dsn: $dsn = 'mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ';charset=' . $this->charset;
@mmtuts We are currently missing import / update / select oop pdo tutorials, along with login system with oop pdo Please when you have time create them.
Really!! Really Thanks Very much for making tutorial on this topic I hope you will make full tutorial on this topic and finish it soon....so that you'll make on others😊✌️😀 Topics!!!!.......
You are absolutely right that a singleton would be a good alternative for the Dbh class. Not just from a performance point of view, but also because we will never use more than one instance of the Dbh class. But again as you put it, it is more of a “best practice” and I felt that I needed to get started on some database examples because a lot people were requesting it :) I will make an episode a bit later on singleton
Good day this is a great tutorial, I follow and currently using this method how to connect database, just wondering how to close the database connection?
Hi Dani, Thank you very much for all the great tutorial, I couldnt finish my projects without you. I could recreate everything in the procedural series. However with these tutorials i seem to have multiple problems. Is this way maybe deprecated now? Because If i dont hand over the private variables into the connect function, it says it expects variable names. I can't get the connection to work and i have 1:1 the same code as you. Thank you so much or anyone who can answer that dilemma
why you didn't use the $this->dns and $this->pdo inside the method, are they different inside method and outside method. I mean when we define inside class i.e outside method they are properties and inside method they are know as variable or what?
does making a seperate Dbh class then extend from it to another classes, makes new database connections eveytime i create an instance of that specific class?
How to write conditional queries in PDO using OOPs for a senario like: Check for a user (i.e. email & phone) during registration before inserting in DB? Please advice? One last thing, video tutorials are not organised i guess. Please look into that point also if possible.
hey can you tell me how to get the last id enter to the database in this way, i tried lastInsertId, insert_id both but i didn'd get the id so if you can tell me a way it will be very helpfull for me and thank you for your videos, these are very usefull..
Fatal error: Uncaught Error: Call to protected method connection::connector() from context '' in C:\xampp\htdocs\sos.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\sos.php on line 5
I have a question: suppose I PHP-social media page. Do I create multiple Database users that can access the database itself or create one user that can read all of the information from the database? not registered users have access to public posts on this social media page. At the same time, registered users can also see private posts. I thought it might be better to have a general user for the database and multiple others for each account, but I just realized maybe that's all not necessary. Is one enough that displays for every user? How do big companies manage their users? Do they create multiple DB-users for every registered user? Thanks :)
i understand that users cannot call private methods/properties, but can they see the code for private methods/properties with e.g. inspect element? I don't want to hard code a site's root password anywhere unless I can know that there isn't any way for users to see it, and it's still not clear enough to me what it means for a php file to "include" another php file such that I'm not assured that the information stays safe.
Hello, is it good practise to log in to the Database as root?? Is it safe to login as root when creating new record in User table? or how do you manage login and registrations. Is it possible to create new user for every new registered user also in Mysql server? How do you handle this in real website? I thought about something like creating a new user (New account on Mysql server) with low permissions when user filled form.
Daniel was one of my first teachers in PHP, and learning some of the basic techniques was pretty easy to understand because of how he deliver the technicalities of some SPL.
East & West.....Danish Brain is the BEST in programming....Cause....They understand the problems CLEARLY....They go through the steps DEEPLY.....They explain the complex staffs EASILY.....and mmtuts is just Life Saving Awesome....More time I spend with you....More get addicted to know from you....Thanks....& All The Best...Thumbs Up..!!
This is so requested by php beginners! Great job!
Thank you so much! Can't wait for the next OOP PHP tutorial on how to insert and gather information from the database. Keep up the good work!
You're missing out to wrap this up in a try catch. Also, it should be recommended to keep credentials inside a config file - even if you don't work with git/bigger teams, just for habbit reasons.
The only OOP tutorials I understand
love the way that you remind some basic things time by time. like $this-> for property . Even though its basic but really effective for the beginners who might have forgot that and i am one of them.
you're creating a good ripple effect on the world, good for us
Hi, I just want to thank you for the amazing tutorials of PHP, I learned so much from them, can you please make a video about the testing methods of a web application built with PHP, A lot of people complete the projects and don't have an idea how to test the web application properly and I'm one of them, thanks
This course is awesome!! Thank you :)
A Laravel series would be awesome!
Lookup "coderstape laravel"
Looking forward to the next episode! Thank you for your time and effort! Much appreciated!!
Thanks a lot for teaching me almost everything about OOP PHP. You're the best one.
Really important php tutorials!
I really enjoy your tutorials. You present useful information in a clear, easy to understand manner. i'm a proyd supporter of mmtuts.
Youre way better than my teacher
Mr. Daniel, I have learned a lot from you especially oop php. Could you make another video teaching oop php with mvc, database, and using transaction, commit, rollback feature. Thank's
Thanks pretty straight forward lecture!
I'm glad I found you
Thanks! Great tutorial! Wonderful explained!
Also imortant to make things easier with character modes, add to the Dbh class:
private $charset = 'utf8mb4';
and add it to $dsn:
$dsn = 'mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ';charset=' . $this->charset;
Great work so far, thx a lot :) btw think you should have shown how to close the connection.
(2)
You are AWESOME , Thanks Alot
@mmtuts We are currently missing import / update / select oop pdo tutorials, along with login system with oop pdo
Please when you have time create them.
I remember those good old days when connecting to a database was just 5 lines of code
these all are bad guys' fault
org 0x100
mov dx, say
mov ah, 9
int 0x21
mov ah, 0x4c
int 0x21
say db "Everything was just better in the old days, was it not?", 0x0d, 0x0a, '$'
@@michielsimons1828 I meant in procedural sql
Dude, your great - seriously classes used to scare the **** of me. Well done man. You rock.
I am waiting for the next course so much
Thanks a lot. Take love bro.
Really interesting. But in this one I missed a real world example use case for abstract classes. Thanks!
Great tutorial, thanks!
Thank you for making this educative content, it really helps a lot of people. Keep it up.
i think i love you, thanks!
Are you planning to create a tutorial building a MVC-based example?
Thanks for this very nice tutorials!!
Really!! Really Thanks Very much for making tutorial on this topic I hope you will make full tutorial on this topic and finish it soon....so that you'll make on others😊✌️😀 Topics!!!!.......
Thank you Master mmtuts, Luv from CN!
Amazing video thank you so much
Awesome lessons man! Thank you!
welcome back :))
excelent
thanks
Thank you so much!
Hey Daniel you should get python tutorial up and running on this channel. Because your videos content are very very good ❤️
Good tutorial(s) ! Can you explain why you dont use a constructor to the method?
Hello mmtuts,
Can you make a video about PHP Authentication.
Thanks for your good content.
Best,
Natiq
ua-cam.com/video/xJHkCTviJW4/v-deo.html
ua-cam.com/video/LC9GaXkdxF8/v-deo.html
@@Stoney_Eaglehi,
I mean OAuth.
It may be a best practice to use a singleton for the Dbh class, to increase performance.
You are absolutely right that a singleton would be a good alternative for the Dbh class. Not just from a performance point of view, but also because we will never use more than one instance of the Dbh class. But again as you put it, it is more of a “best practice” and I felt that I needed to get started on some database examples because a lot people were requesting it :) I will make an episode a bit later on singleton
@@Dani_Krossing Please make a video explaining when a singleton should be.
Good day this is a great tutorial, I follow and currently using this method how to connect database, just wondering how to close the database connection?
Hello Daniel, can you make video about creating wordpress theme?
Gracias crack
Excelent
Hi Dani, Thank you very much for all the great tutorial, I couldnt finish my projects without you.
I could recreate everything in the procedural series.
However with these tutorials i seem to have multiple problems. Is this way maybe deprecated now? Because If i dont hand over the private variables into the connect function, it says it expects variable names. I can't get the connection to work and i have 1:1 the same code as you. Thank you so much or anyone who can answer that dilemma
amazing
will you continue with this course? Im really interested
why you didn't use the $this->dns and $this->pdo inside the method, are they different inside method and outside method. I mean when we define inside class i.e outside method they are properties and inside method they are know as variable or what?
does making a seperate Dbh class then extend from it to another classes, makes new database connections eveytime i create an instance of that specific class?
How to write conditional queries in PDO using OOPs for a senario like:
Check for a user (i.e. email & phone) during registration before inserting in DB?
Please advice? One last thing, video tutorials are not organised i guess. Please look into that point also if possible.
Can we get a video on adsense in our websites
Hey could you make for us a video for pagination using PHP & JS
I don't remember him ever mentioning and I've never encountered it before: what does DBH stand for?
Think it stands for Databasehandler
hey can you tell me how to get the last id enter to the database in this way, i tried lastInsertId, insert_id both but i didn'd get the id so if you can tell me a way it will be very helpfull for me and thank you for your videos, these are very usefull..
Why most of the user doesn't set the password on their localhost ?
what is
mysqli version of this?
Fatal error: Uncaught Error: Call to protected method connection::connector() from context '' in C:\xampp\htdocs\sos.php:5 Stack trace: #0 {main} thrown in C:\xampp\htdocs\sos.php on line 5
Did you extend the class ?
I have a question: suppose I PHP-social media page. Do I create multiple Database users that can access the database itself or create one user that can read all of the information from the database? not registered users have access to public posts on this social media page. At the same time, registered users can also see private posts. I thought it might be better to have a general user for the database and multiple others for each account, but I just realized maybe that's all not necessary. Is one enough that displays for every user? How do big companies manage their users? Do they create multiple DB-users for every registered user?
Thanks :)
Or you could just make it as a static class and then call it in another class to private propeties ?
i understand that users cannot call private methods/properties, but can they see the code for private methods/properties with e.g. inspect element? I don't want to hard code a site's root password anywhere unless I can know that there isn't any way for users to see it, and it's still not clear enough to me what it means for a php file to "include" another php file such that I'm not assured that the information stays safe.
Interesting.. "Don't leave a php closing tag." Is that really the best practise?
Yes it is. :) Here are some examples why: stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag
why not we are using protected variables and private methods here ??????
Do you have coures on udemy ? Please do node.js tutorail
Your face looks like Elon Musk. Its my first time here :>
Hello, is it good practise to log in to the Database as root?? Is it safe to login as root when creating new record in User table? or how do you manage login and registrations. Is it possible to create new user for every new registered user also in Mysql server? How do you handle this in real website? I thought about something like creating a new user (New account on Mysql server) with low permissions when user filled form.
Why don't you set the return type of your function connect to PDO?
Is PHP still widely used? I keep hearing PHP and MySql are declining in popularity.
80% of the web is using php. It's a big Language and it's not going anywhere
@Lion what do you suggest, because I'm still using and learning php?
@@ademineshat I use PHP on my sites as well, it's a great language. It ticks me off when people tell me it's outdated.
@Lion I use PHP on my sites as well, it's a great language. It ticks me off when people tell me it's outdated.
@@ademineshat I use PHP on my sites as well, it's a great language. It ticks me off when people tell me it's outdated.
that naming convention results in errors.. why not change it to _class
the hat XD :D
Don’t insult the awesome hat! D:
You kind of look like Mr.Beast
He looks and even sounds a lot like Elon Musk too.
Hey
Where are __construct() and __destruct()?
yu look like a mafia boss these days ..
Noice!
He has a sense of humor
Stick to PDO.
,,😠😠😠😠😠 you take whole week
😠😠😠😡😡😡You should upload video in 2 days. You are taking too much time. We can wait whole week or more for next video.
Can we get a video using adsense in our websites html and css and javascript