Is it advisable to store passwords in a MySQL database using md5() encryption in PHP?

Storing passwords using md5() encryption in a MySQL database is not advisable as md5() is considered insecure for password hashing due to its vulnerability to brute force attacks. It is recommended to use stronger encryption algorithms like bcrypt or Argon2 for securely storing passwords in a database.

$password = 'password123';
$hashed_password = password_hash($password, PASSWORD_DEFAULT);

// Store $hashed_password in the MySQL database