How can I prevent SQL injection in PHP?

The correct way to avoid SQL injection attacks, no matter which database you use, is to separate the data from SQL, so that data stays data and will never be interpreted as commands by the SQL parser. It is possible to create SQL statement with correctly formatted data parts, but if you don’t fully understand … Read more

PHP with MySQL 8.0+ error: The server requested authentication method unknown to the client

I’m running MySQL version 8 on PHP 7.0. I’m getting the following error when I try to connect to my database from PHP: Connect Error: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client PHP might show this error Warning: mysqli_connect(): The server requested authentication method unknown to the client [caching_sha2_password] in D:\xampp\htdocs\reg\server.php … Read more

phpMyAdmin – Error > Incorrect format parameter?

This issue is not because of corrupt database. I found the solution from this video – https://www.youtube.com/watch?v=MqOsp54EA3I It is suggested to increase the values of two variables in php.ini file. Change following in php.ini Then restart the server. This solved my issue. Hope solves yours too.