I wrote a registration form in PHP below mentioned source code. when I run this code error message is coming
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\wamp64\www\Registration\registration.php on
can you explain why this error is coming.
<?php
mysql_connect("localhost","root",""
;
mysql_select_db('user_db');
if(isset($_POST['submit'])){
$user_name=$_POST['name'];
$user_pass=$_POST['pass'];
$user_email=$_POST['email'];
echo $user_name;
if($user_name==''){
echo "<script>alert('please input name')</script>";
exit();
}
if($user_pass==''){
echo "<script>alert('please input password')</script>";
exit();
}
if($user_email==''){
echo "<script>alert('please input email')</script>";
exit();
}
}
?>