PHP Tutorial (& MySQL) #32 - Deleting a Record

preview_player
Показать описание
Hey gang, in this PHP & MySQL tutorial I'll show you how we can delete a record from the MySQL database.

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

🐱‍💻 🐱‍💻 Course Links:

🤑🤑 Donate


🎓🎓 Find me on Udemy

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

At 7:32 you didnt type 'else' but it still worked! I didnt know the code would allow that!

JustaGamerh
Автор

I've been stuck with the isset post hehe, it's almost half an hour. It's not a problem to me and I'm so thankful with your tutorial.

nosjah
Автор

best tutorial ever as usual, really thank you net ninja ♥♥♥

MohamedAdel-bbiz
Автор

Thank you so much bro. for this series. I was don't know what is php and from last week i started whtch your video and now Im understand how work in php and learn lots of coding syntext thanks for it. after that series i will start HTML and CSS playlist. Thanks dude

suresheww
Автор

If anyone else is wondering about the missing 'else', it was a typo, don't do it.

When the 'if' is true, PHP will just execute the code for both true and false, which is definitely not what you want. By sheer luck, you don't see anything bad happen in this example because once the header code is executed, the page is redirected so it never reaches the echo statement coming next.

googleboughtmee
Автор

All your lessons have been great, in that I am free to build a website from the dependency of wp & wix, thanks for your knowledge!

richardyoung
Автор

You're awesome. I always follow your videos I like mostly back-end courses because I mostly work on the back-end.
I have a question which says: What is your next video tutorial is it gonna be Laravel or it's something else.
Shaun, I'd be grateful if you could answer me😊

Arman-cntf
Автор

When do we need to use mysqli_close($conn) and when do not? Do we need to add it into the delete action?
Thanks for making this practical tutorial for free!

ga
Автор

Notice: Undefined variable: pizza in on line 47

abhishekbhute
Автор

why is there no semicolon on line 42 after the echo statement?

gkossatzgmxde
Автор

on line 14 at details.php is it ok if we don't type 'else' ?

abdoerrahiem
Автор

Hi there ! Your tutorials are great ! thank you so much.
I found a security flaw while making the project : if you change the value of the "id_to_delete" hidden input using the inspector, another pizza is going to be deleted, how could I avoid this flaw ? I'd like to use this system for a blog project of mine and I don't want users to be able to delete other people's comments.
Thank you !

paulohl
Автор

best tutorial , really thank you net ninja ♥♥♥ awosome you are

CA_Sandeep_Modi
Автор

Oddly, my $_POST array was empty, the form variables were getting passed as a $_GET request because I could see them in query string. I resorted to using $_REQUEST instead and that worked.

tigere
Автор

Man, I'm getting an error here, can someone help me?


Notice: Undefined variable: pizza in details.php on line 58

codingwalnuthindi
Автор

You are the best, I really like your teaching methods, can't wait until POO & laravel series. GOOD Luck ( ;

randomness
Автор

ok, why is my delete button is not center? is slightly to the left

ezybreezy
Автор

I am trying to add the delete button to a page where I already queried the table do I make the $sql code../ into something like $sqlid code../ and continue the query? I have been having a lot of trouble with this. Do I need to fetch the id again if i grabbed it with the other $sql?

scruffyguymusic
Автор

thanks a lot Net Ninja for the awesome tutorial, just a question, when i am trying the delete button i am getting an error message 404, which shows that the object couldn't be found, i followed you step be step in every detail. but i couldn't find the cause.

firaszakri
Автор

"Undefined variable: pizza in on line 22 " this error plzzz slove

getintosuccess
join shbcf.ru