My database and the system is not connecting

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /storage/h7/847/1180847/public_html/connect.php:2 Stack trace: #0 /storage/h7/847/1180847/public_html/header.php(2): include() #1 /storage/h7/847/1180847/public_html/index.php(7): include('/storage/h7/847...') #2 {main} thrown in /storage/h7/847/1180847/public_html/connect.php on line 2
<?php
	mysql_connect('localhost','id1180847_ngidza','0123456789') or  die('cant connect database ');
	mysql_select_db('id1180847_ngidza') or die('cannot select database');
?>

Used Databases2 of 2
ADD MORE RESOURCES
Need more? Increase database size & quantity simply by upgrading to PRO!

Create & manage databases

Create new MySQL databases or manage your current databases using advanced PhpMyAdmin panel. You’re also able to change passwords for your DB or completely remove DB.

Database is limited to: 1 GB of data and 150 tables.

Default database engine: InnoDB on MariaDB 10.1

Manage databases at databases.000webhost.com

Use localhost as connection hostname

DB Name	DB User	DB Host	 
id1180847_ngidza	id1180847_ngidza	localhost	Manage Manage
id1180847_ngirande	id1180847_root	localhost	Manage Manage

thanks for your suport
in advance

Try general settings under 000webhost.com and choosing the PHP version that closely matches your script.