I am designing signup page, every time it displays your password dont match , please guide me :    every time i submit it it displays your paswwords dont match , please guide me where i am wrong
<?php

    session_start();
    
    $localhost= 'localhost';
    $username= 'SK';
    $password="29336";
    $db = "Internship";
    $con= mysqli_connect($localhost,$username,$password,$db);
     if (isset($_POST['reg_user']))
     {
    	 $name= $_POST['name'];
    	 $email= $_POST['email'];
    	 $psd= md5($_POST['psw']);
    	 $confirm_psd= $_POST['confirm_psw'];
    	 if ($psd == $confirm_psd)
    	 {
    		 $query = "INSERT INTO register (name, email, password) 
      			  VALUES('.$name.', '$email', '$psd')";
      	mysqli_query($con, $query);
    	echo 'inserted';
    	 }
    	 else
    	 {
    		 echo "your password dont match ";
    	 }
    	  
     }
    
    
    ?>