<?php
$host = "akmaliah.net:3306";
$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/YE9BO:7
Stack trace:
#0 {main}
thrown in /in/YE9BO on line 7
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Fatal error: Call to undefined function mysql_connect() in /in/YE9BO on line 7
Process exited with code 255.