<?php
$host = "akmaliah.net";
$username = "mysql";
$password = "12345";
$database = "nama_database";
$conn = mysql_connect("$host","$username","$password");
if (!$conn) die ("Gagal Melakukan Koneksi");
mysql_select_db($database,$conn) or die ("Database Tidak Diketemukan di Server");
?>
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /in/0CNOg:7
Stack trace:
#0 {main}
thrown in /in/0CNOg on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
Fatal error: Call to undefined function mysql_connect() in /in/0CNOg on line 7
Process exited with code 255.