I just wanna ask for your help guys. Im having a problem with my coding which is to open database connection. Here is my code.
<?php
define('MYHOST', 'localhost');
define('MYDATABASE', 'system');
define('MYUSERNAME', 'root');
define('MYPASSWORD', 'root');
$conn = mysql_connect("localhost", "root", "", "")
if ($mydb->connect_error) {
die("Connection Error Message: ".$mydb->connect_error);
}
?>
and it show an error like this
Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\system\database.php on line 11
thank you guys for your answer..