Hi all,
could you help me.. what getting wrong with this code? it is not work.
<?php
define ('DB_SERVER_', 'localhost');
define ('DB_USER_', '');
define ('DB_PASS_', '');
define ('DB_NAME_', 'ocs_proton');
class DB_class
{
public function __construct()
{
$Conn = mysql_connect(DB_SERVER_, DB_USER_, DB_PASS_) or die('Server not Conneceted -> $Conn'. mysql_error());
mysql_select_db(DB_NAME_, $Conn) or die('database not connected -> $Conn'. mysql_error());
echo '$Conn';
}
}
?>
Thanks..