below code and the error has given
$Username =mysql_real_escape_string ($_POST['Username']);
fatal error:call to undefined function mysql_real_escape_string ()
below code and the error has given
$Username =mysql_real_escape_string ($_POST['Username']);
fatal error:call to undefined function mysql_real_escape_string ()
Change your connection string from mysql to mysqli
// connection string
$link = mysqli_connect("localhost", "username", "mpassword", "database") or die($link);
$Username= mysqli_real_escape_string($link, $_POST['Username']);