Notice: Undefined index: x in C:\xampp\htdocs\spa\main.php on line 3

Notice: Undefined index: y in C:\xampp\htdocs\spa\main.php on line 4

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\spa\main.php:24 Stack trace: #0 {main} thrown in C:\xampp\htdocs\spa\main.php on line 24