23 | UPDATE & DELETE Database Data Using PHP From Your Website! | 2023 | Learn PHP Full Course

  Рет қаралды 35,397

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 41
@tadeob_UB
@tadeob_UB Жыл бұрын
Thank you so much for these tutorials. I have gotten into PHP using your videos and I’ve watched so many already to incorporate them in my projects. You are a big inspiration!
@downpp2255
@downpp2255 Жыл бұрын
So handy, so easy to follow and soo easy to understand. Hope more people can find your channel!
@edunjobiemmanuel4200
@edunjobiemmanuel4200 Жыл бұрын
Thanks Kross. Your tutorial is really helpful
@kasunkumarasinghe6365
@kasunkumarasinghe6365 Жыл бұрын
thanks dani, you are teaching almost everything a learner should know.
@isidoramita3286
@isidoramita3286 6 ай бұрын
Thankyou so much. Now I know how to connect my website to a database.🙏
@alandslemany8788
@alandslemany8788 Жыл бұрын
Dude your videos are definitely top, and next week I have a PHP exam please upload the videos as fast as possible❤
@phpcoderforever
@phpcoderforever Жыл бұрын
You are the best php teacher go ahead and upload videos daily then we need a course how to protect the website .
@grimmjow6398
@grimmjow6398 Жыл бұрын
sir, I Love your tutorials it greatly helps me on my study on php to prepare for my college course subjects, thank you.
@Stuckzxc
@Stuckzxc Жыл бұрын
Waiting for next ep!
@ezekielu7776
@ezekielu7776 7 ай бұрын
most clean tutorial in 2024, I'm impressed.
@HaiderAli-zo9ff
@HaiderAli-zo9ff Жыл бұрын
Dani Sir Please upload videos daily.... waiting for next
@josueortiz9309
@josueortiz9309 10 ай бұрын
Thanks Dani! I have a doubt ... when I try to update the user and hit update it completes the try and everything seems to be ok, but when I see the database it doesn't delete the record, but delete the data inside the cells of the table.
@ruudkorunka
@ruudkorunka 6 ай бұрын
Thanks you for your explanation. Is there also a way to fetch the database data automatically into an html table, using pdo?
@phpcoderforever
@phpcoderforever Жыл бұрын
Dani why you put number 2 directly in the update statement you have to put it ? or named parameter then bind it with bindParam method with other arguments
@Dani_Krossing
@Dani_Krossing Жыл бұрын
It's because that 2 isn't data that was submitted by the user. 🙂 It is only user data you need to protect against.
@phpcoderforever
@phpcoderforever Жыл бұрын
@@Dani_Krossing you mean we put only the passed data in parameters and any direct data we put it in the script no need to put it in a parameter
@Dani_Krossing
@Dani_Krossing Жыл бұрын
ANY data submitted from the HTML form, HAS to be replaced by a parameter in the query, and be submitted separately using the bindParam(). 🙂 Even if it is data that we created and submitted using a hidden input in the HTML form, since the user can manipulate that data using the build in developer tool in the browser. Any data that we add directly inside our PHP script, does not need to be a parameter, since the user doesn't have access to that, and didn't have an opportunity to "attack us" using that data. 🙂 Because I added the "2" inside the script directly, the user never had a chance to "mess with it". So therefore it is safe.
@valentinbonchev7485
@valentinbonchev7485 5 күн бұрын
Halloow Dani, thx for the tutorial. In practical sense, what is the point of a website to have change user / delete user?
@Dani_Krossing
@Dani_Krossing 5 күн бұрын
If you wanna update your profile info, like changing your registered email or username. Or if you wanna delete your account.
@valentinbonchev7485
@valentinbonchev7485 5 күн бұрын
@@Dani_Krossing Ohhhhh okk just yk in websites usually u just click "Delete Account" button and it happens. But i think for changing username / password / email is good
@felixliberty772
@felixliberty772 5 ай бұрын
Many thanks, I have issues with update "$id". It was showing error from undefined array, what should I do?
@titusrobinson4739
@titusrobinson4739 5 ай бұрын
Hello Dani, I am following along with your tutorial for updating data and I am getting a few different errors. I am following your code verbatim and yet... still having issues.
@Ghareebz
@Ghareebz Жыл бұрын
Dani sry for that but what would you take for a Carrer if you have the choice Game Dev or Web Dev
@Dani_Krossing
@Dani_Krossing Жыл бұрын
I mean objectively the web dev path has better opportunities, and less risk involved if you want a solo career. Subjectively, I would love to work with games, but it would require more knowledge in that field on my end, and it’s a much too risky path for me to be comfortable with it as a career. I’m a self taught game dev, but actually have a bachelor’s in web dev. 🙂 which realistically at this point also makes it a better choice for me personally, since I yet don’t have the skills to get hired in a game company. But if you are looking for an objective answer, then web dev is the more stable industry. 🙂
@Ghareebz
@Ghareebz Жыл бұрын
@@Dani_Krossing thanks 🙏❤️
@FafajojoFafajojo
@FafajojoFafajojo Жыл бұрын
Hi, I'm an Iranian student and I can't speak English well. I can't connect my database to php, and in the next output, when I click on the button, it prints from setAttribute to the end of the php tag as an error. Can you help me?
@arielp7582
@arielp7582 Жыл бұрын
Is the info inside your $dsn variable correct?
@brianjay9357
@brianjay9357 7 ай бұрын
i was following the previous lesson and managed to insert data to my database but now it is submitting empty data in the db table even if i have entered data to the form. what could be the reason ?
@Dani_Krossing
@Dani_Krossing 7 ай бұрын
It means that your code on the next page, after submitting the form, isn't getting the data. Which means there is a typo in your code there. :) You are welcome to share the code here, if you can't find the typo.
@brianjay9357
@brianjay9357 7 ай бұрын
@@Dani_Krossing would the typo be in the form handler?
@prathamsrivastava5232
@prathamsrivastava5232 4 ай бұрын
what is hidden input field in html and why we use it and can we implement it??
@florisvandenberg7424
@florisvandenberg7424 2 ай бұрын
The hidden input field in HTML forms is used to pass data to the server without displaying it to the user or allowing them to modify it. This is useful for maintaining state, passing session information, or including additional context with form submissions.
@Trunk_Tech
@Trunk_Tech Жыл бұрын
Can we get a pop up or something saying that the update or delete Successfully 😁😁 am just being curious or something..
@mejbahahmed9780
@mejbahahmed9780 Жыл бұрын
Sir Give us laravel 10 tutorial pls
@niyaziguven7124
@niyaziguven7124 Жыл бұрын
When I update the information only the e mail gets updated. username and pwd gets deleted. Does anybody else have this problem. Anybody knows why this might be happening?
@niyaziguven7124
@niyaziguven7124 Жыл бұрын
I just figured that having the formhandler in the same directory is causing the issue. I deleted it from the directory and it is fixed.
@siphesihlemathe7179
@siphesihlemathe7179 8 ай бұрын
I did that but no change@@niyaziguven7124
@FafajojoFafajojo
@FafajojoFafajojo Жыл бұрын
I want to create a database for user comments
@mohammedalbraih6233
@mohammedalbraih6233 Жыл бұрын
yeah, forgot to mention getting a haircut :)
@Dani_Krossing
@Dani_Krossing Жыл бұрын
I mentioned it at the start of the last episode 😉 I had to get it for health reasons
@mohammedalbraih6233
@mohammedalbraih6233 Жыл бұрын
@@Dani_Krossing I might have missed it🫣 since I watched about most of your content. Not gonna lie your videos are a lot more beneficial than what some universities teach us. Got a full score on a project thanks to you. Stay safe and healthy buddy.👍🏻👍🏻
Noodles Eating Challenge, So Magical! So Much Fun#Funnyfamily #Partygames #Funny
00:33
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
MySQL: How to UPDATE and DELETE data from a TABLE
3:32
Bro Code
Рет қаралды 88 М.
How to retrieve a single data/record from database using php mysql
15:35
Funda Of Web IT
Рет қаралды 106 М.
Save HTML Form Data to a MySQL Database using PHP
24:38
Dave Hollingworth
Рет қаралды 214 М.
How to Connect HTML Form with MySQL Database using PHP
7:09
Technical Babaji (Tarique Akhtar)
Рет қаралды 2,5 МЛН
How to Fetch Data From Database in PHP And Display HTML Tables
20:17
OnlineITtuts Tutorials
Рет қаралды 211 М.
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22