I'm not sure how to address this issue:
EDIT: can someone just edit my code with the corrections because this is due tmrw.
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\login\login-registration-php\login-registration-php-new\dbconnect.php:6 Stack trace: #0 C:\xampp\htdocs\login\login-registration-php\login-registration-php-new\index.php(4): require_once() #1 {main} thrown in C:\xampp\htdocs\login\login-registration-php\login-registration-php-new\dbconnect.php on line 6
<?php
// this will avoid mysql_connect() deprecation error.
error_reporting( ~E_DEPRECATED & ~E_NOTICE );
// but I strongly suggest you to use PDO or MySQLi.
$conn = mysql_connect(localhost,nathan,password);
$dbcon = mysql_select_db(dbtest);
if ( !$conn ) {
die("Connection failed : " . mysql_error());
}
if ( !$dbcon ) {
die("Database Connection failed : " . mysql_error());
}