How to Prevent PHP Code from SQL Injection | PHP Tutorial | Core PHP Method

How to Prevent PHP Code from SQL Injection | PHP Tutorial | Core PHP Method

Skill Institution

4 года назад

74 Просмотров

Here we are showing full practical code example to prevent Core PHP Code from SQL Injection.
What is SQL Injection?
It's a technique basically that attackers use to attack on our web application. They come on our web form and put statement with invalid character or SQL query.
When they will submit that information through text box, that will destroy our database and application.

In this video, we are teaching how to clean this things to avoid any kind of unfortunate things like SQL Injection.
We should use mysqli_real_escape_string() function that provided by PHP and pass the parameter that we want to clean and clear.

$username = mysqli_real_escape_string($connection, $username);
$password = mysqli_real_escape_string($connection,$password);


Click here:
Install Linux Step by Step method and Guide:
https://www.youtube.com/watch?v=q6COPfP48ZU

How to install and configure Web Server in Linux - Step by Step Method
https://www.youtube.com/watch?v=oyuUlFL4vkE

Тэги:

#php #sql #sql_injection #php_code #core_php #core_php_tutorial #php_security #sql_injection_attack #php_form #php_data_validation #prevent_sql_injection #prevent_sql_injection_php #php_prevent_sql_injection #php_code_in_html #php_tutorial_for_beginners #php_tutorial_for_intermediate_full #php_programming #learn_php #php_tutorial #how_to_prevent_php_sql_injection #mysqli_real_escape_string #php_for_beginners #mysqli_real_escape_string_in_php #mysqli_tutorial
Ссылки и html тэги не поддерживаются


Комментарии:

gestapostical gestapostical
gestapostical gestapostical - 15.03.2021 17:12

why are you smacking your lips and making weird mouth noises? good bye

Ответить
Rosemarie Osborn
Rosemarie Osborn - 06.08.2020 18:06

I build static websites I doubt the LAMP would be necessary for me. Great detail video otherwise, thank you.

Ответить
Rosemarie Osborn
Rosemarie Osborn - 19.07.2020 18:18

you don't need LAMP if you're using apache just to download static websites, I am a frontend webdeveloper, it makes sense to not go through the extra steps he is speaking about.........oh well, that's my opinion. It's still a good video, thank you

Ответить
Dmytro Vyshnevskyi
Dmytro Vyshnevskyi - 20.08.2019 19:16

Thank you for the video- may I ask you what software did you use it to record it?

Ответить
Vitaly
Vitaly - 15.02.2019 02:12

Hey, after downloading phpmyadmin and setting up everything I can't use the url localhost/phpmyadmin. For you it gives an option to login but for me it days not found ? Any suggestions plz thanks

Ответить
Blake Morris
Blake Morris - 06.12.2018 06:10

What about the index.php?

Ответить
Chizisch
Chizisch - 16.05.2018 23:25

Really nice tutorial. Keep Up the good work man (y)

Ответить