41: What Are Error Handlers in PHP | PHP Tutorial | Learn PHP Programming

  Рет қаралды 123,958

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 83
@JonasHerbertson
@JonasHerbertson 3 жыл бұрын
This is not bad - but I was actually expecting a "throw....catch... exception" explanation :D. Still thumps up for a good beginners tutorial :)
@techexpert2010
@techexpert2010 7 жыл бұрын
Thanks for the great tut. Can't wait for lesson 42
@llBestBoyll
@llBestBoyll 2 жыл бұрын
That's what i need thx ❤️
@drcod3r329
@drcod3r329 7 жыл бұрын
welcome back please could you do a toturial about curl and api payment integration
@nakiapringley5391
@nakiapringley5391 3 жыл бұрын
Great video on error handling
@shaunmak8037
@shaunmak8037 4 жыл бұрын
Thanks for the upgrade of mic
@ashrafulfuad2967
@ashrafulfuad2967 5 жыл бұрын
Thank you so much this video is also helpful for beginner
@ahgiynq
@ahgiynq 5 жыл бұрын
Great Tutorial, Thank YOU
@lameduck1690
@lameduck1690 6 жыл бұрын
Glad you switched to Atom.
@mcg6429
@mcg6429 Жыл бұрын
I was waiting for Try Catch Trow Exception
@Bilal.Hussain01
@Bilal.Hussain01 6 жыл бұрын
Awesome job brother !!!
@pahasararuwanpathira9750
@pahasararuwanpathira9750 Жыл бұрын
love you sir
@Russell.Jolly.2023
@Russell.Jolly.2023 6 жыл бұрын
If memory serves, you should not use non php extensions for php code as it is possible for hackers to gain access to the file content of non php text files.
@ajazmiah
@ajazmiah 7 жыл бұрын
Do you plan do teaching laravel ?
@aaammm1888
@aaammm1888 4 жыл бұрын
this is why im learning php html ccs javascript
@assmabenmussa4228
@assmabenmussa4228 6 жыл бұрын
Why did we put the include_once function inside of the if statement and not at the top like we do every time? what difference does it make?
@mahmoods9861
@mahmoods9861 3 жыл бұрын
If I dont want index.php appear on url area, what can be done to avoid that? i dont want user to know file extension type, which would let user know php as backend in use. how to avoid using the file extension name, like php in index file to appear in url?
@moatasemyakhni925
@moatasemyakhni925 3 жыл бұрын
I hope you found the solution back then, but if you didn't here is a link kzbin.info/www/bejne/Y2evqnpvfpJ5hsU of one of his videos on how to do that. He already cover that. Great channel indeed!
@kimmergal8330
@kimmergal8330 4 жыл бұрын
Thank you❤
@omarabdul494
@omarabdul494 7 жыл бұрын
Thanks, great lesson plz could you make complete web application real project so we can learn a howle things
@mackynikat8833
@mackynikat8833 4 жыл бұрын
. I feel everytime each of your vids i experienced . i really need this one to fast level . I will have a party in this
@necronomicon-xmortis9362
@necronomicon-xmortis9362 2 жыл бұрын
Your coarse is realy good you have a great method of explaining but im still stuck i dont know javascrip php or sql yet but have seen syntax many times my issue is with " the button "and how to get the client info on the contact form emailed back to me there is mailto fuction onclick function and php and sql
@skylake9779
@skylake9779 5 жыл бұрын
Dear When we have more buttons to execute Update, Delete, and Print function how to do that in form.
@yousufsulaiman2211
@yousufsulaiman2211 3 жыл бұрын
thanks
@MilanB
@MilanB 7 жыл бұрын
Will you introduce some php projects such as cms, blog etc?
@matthweneldon8694
@matthweneldon8694 5 жыл бұрын
Why is it uncommon to trim the email address, thus eliminating white spaces? $email=trim($_POST['mail'])? I often get errors on pages because of white space. Thanks
@hey-simba
@hey-simba 4 жыл бұрын
hello i watch your vedio of system login also ... your lesson are very useful and good . i have one question that we have used error handling and error message for empty field here .... why dont we just write the input feild required ??? then the page will ask user to fill all the feild .Thus error cant happen regarding empty feild........ please reply and do correct me if i am wrong ???? any one ....stay safe....
@pianoLee-sx9dx
@pianoLee-sx9dx 6 жыл бұрын
Must you always call it index.php for your main page? Can you call it something like... errorhandling.php for your main page?
@austin16377
@austin16377 2 жыл бұрын
yeah
@jayrheylicong8104
@jayrheylicong8104 6 жыл бұрын
Thank you much, i dont know how to pay you :)
@saleheen12
@saleheen12 5 жыл бұрын
You don't know? Join his patreon
@amoghdatar2726
@amoghdatar2726 6 жыл бұрын
*Please would you reply:* *Atom vs SublimeText* *_WHICH YOU USE AND PERSONALLY LIKE AND WHY? :)_*
@novanjayesconde3569
@novanjayesconde3569 7 жыл бұрын
Sir Daniel can you do some tutorial on how to make a system in php? just like inventory or student penalty recording
@hackmantutorials8625
@hackmantutorials8625 6 жыл бұрын
I am getting object not found error on localhost/project/user/singup.php?signup-script=empty
@nizarbenghazi6321
@nizarbenghazi6321 6 жыл бұрын
plz attach subtitles in all videos
@shubhamsihasane
@shubhamsihasane 6 жыл бұрын
You have included the database file inside if condition statement. is there any special reason to do that? why not outside of if statement at the top? Thank You!
@hey-simba
@hey-simba 4 жыл бұрын
hello i watch thisvedio of system login also ... your lesson are very useful and good . i have one question that we have used error handling and error message for empty field here .... why dont we just write the input feild required ??? then the page will ask user to fill all the feild .Thus error cant happen regarding empty feild........ please reply and do correct me if i am wrong ???? any one ....stay safe....
@anuragmy
@anuragmy 6 жыл бұрын
It may be better if you use && instead of || as all the feilds are necessary
@hey-simba
@hey-simba 4 жыл бұрын
hello i watch this vedio of system login also ... your lesson are very useful and good . i have one question that we have used error handling and error message for empty field here .... why dont we just write the input feild required ??? then the page will ask user to fill all the feild .Thus error cant happen regarding empty feild........ please reply and do correct me if i am wrong ???? any one ....stay safe....
@leud2k
@leud2k 4 жыл бұрын
Is there a reason why you didn't use mysqli_real_escape_string in this lesson or you did it this way only because the focus of the lesson is on error handling?
@daniellarson8291
@daniellarson8291 3 жыл бұрын
Extract() that post
@adampetersson6809
@adampetersson6809 6 жыл бұрын
In swedish we also have Å Ä Ö that doesnt exist within the english language. When i get the email it just makes weird symbols, do you know how to fix this? :)
@1ch1go798
@1ch1go798 6 жыл бұрын
change the font
@sasg87962
@sasg87962 6 жыл бұрын
UTF-8
@The4tticuz
@The4tticuz 6 жыл бұрын
When your connection to DB was successfull, set the charset like this: mysqli_set_charset($conn,"utf8");
@noeljose
@noeljose 6 жыл бұрын
sir i think instead of using all these codes we can simply use the " required Attribute" in the html itself.
@ashimdahal182
@ashimdahal182 6 жыл бұрын
yeah but that wont be totally safe
@noeljose
@noeljose 6 жыл бұрын
Ashim Dahal but still whatever the PHP code he writes does the same work as the required tag do
@ashimdahal182
@ashimdahal182 6 жыл бұрын
Then u use the one which you think is strong And if u get hackes u will know thwn
@noeljose
@noeljose 6 жыл бұрын
Ashim Dahal don't get tempered man. It's just an opinion.
@zinaright
@zinaright 6 жыл бұрын
Any self respecting application would do validation both at the client and server sides. Using just html tags may not be supported in some browsers for instance
@jere473
@jere473 4 жыл бұрын
This is more basic input validation.
@rawestmoreland
@rawestmoreland 6 жыл бұрын
Let's say a user left something blank AND entered an invalid email. Would you have to use javascript to display multiple error handlers?
@Dani_Krossing
@Dani_Krossing 6 жыл бұрын
No it's possible using PHP as well :) just check for multiple conditions at once using the "AND" operator, and make sure they are the first conditions you check for. Or alternatively you could create an array with the errors inserted and at the end create error messages based on the array. But the first solution might be better since it is closer to what I did in the video :)
@richardwestmoreland3354
@richardwestmoreland3354 6 жыл бұрын
mmtuts thanks!!
@hey-simba
@hey-simba 4 жыл бұрын
hello i watch your vedio of system login also ... your lesson are very useful and good . i have one question that we have used error handling and error message for empty field here .... why dont we just write the input feild required ??? then the page will ask user to fill all the feild .Thus error cant happen regarding empty feild........ please reply and do correct me if i am wrong ???? any one ....stay safe....@@Dani_Krossing
@akashgoswami6845
@akashgoswami6845 5 жыл бұрын
My update query is not working can u help me?
@dhruvjain141
@dhruvjain141 7 жыл бұрын
In most of the forms you would have noticed that as we fill it ,it gets underlined by green and if we skip something it turns that field red ..how is that achieved ?
@s.n2293
@s.n2293 5 жыл бұрын
jquery
@HussamAdil
@HussamAdil 7 жыл бұрын
Thanks for useful video :) how i can sent message for you ? to request A specific lesson and thank in advance.
@tahakhan88
@tahakhan88 2 жыл бұрын
I came here to check for Throw Catch exception vs if else.
@saadieajal7832
@saadieajal7832 3 жыл бұрын
I can't listen please Can you attach the script file ( cc ) to the video? Thank you so much
@algeriennesaffaires7017
@algeriennesaffaires7017 5 жыл бұрын
i feel its annoying not closing the php tag, please close it
@rizkyade7054
@rizkyade7054 2 жыл бұрын
hi i'm from the future
@ralphbaracena5328
@ralphbaracena5328 7 жыл бұрын
tutorial number 42 ? where ?
@hey-simba
@hey-simba 4 жыл бұрын
please reply my question above in this vedio????
@muramasa7537
@muramasa7537 5 жыл бұрын
Why can't we use "elseif" ?
@activistcoder
@activistcoder 5 жыл бұрын
because you should replace that with polymorphism brov
@stephensunderlin
@stephensunderlin 11 ай бұрын
No sure why this showed up 6 years later when I'm searching for a simpley try/catch explaination. And I'm not going to lie, the code shown is pretty janky. Why not use a switch statement or in PHP 8.0 the new match expression. Much more elegent.
@johanstam3602
@johanstam3602 7 жыл бұрын
Not very descriptive for a error handler, better to echo them in the form instead of doing this in the url
@Dani_Krossing
@Dani_Krossing 7 жыл бұрын
Photographyandcoffee.com Thats because we haven't gotten to the " display the error message" part yet :) the episode that gets uploaded tomorrow explains how. And I don't recommend echoing the error message directly in the PHP script since it is going to keep the user on the script page.
@adilismail3593
@adilismail3593 6 жыл бұрын
Where the heck is throw and exceptions?
@mackynikat8833
@mackynikat8833 4 жыл бұрын
. I feel everytime each of your vids i experienced . i really need this one to fast level . I will have a party in this
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
What are Events? (C# Basics)
15:05
Code Monkey
Рет қаралды 407 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 849 М.
Сборник Эксклюзивов 2024 - Уральские Пельмени
1:33:24
Уральские Пельмени
Рет қаралды 1,1 МЛН
PHP Full Course for non-haters 🐘
4:00:00
Bro Code
Рет қаралды 1,8 МЛН
Programming Is NOT Enough | Add these 7 skills…
13:19
Travis Media
Рет қаралды 423 М.