#426 | */ |
#427 | public function connect($host, $user, $pass, $name, $charset = 'utf8', $engine = '') { |
#428 | $link = mysql_connect($host, $user, $pass); |
#429 | if(!$link) { |
#430 | throw new Exception(mysql_error()); |
#431 | } |
#432 | $result = mysql_select_db($name, $link); |
#433 | if(!$result) { |
#434 | throw new Exception(mysql_error()); |
#435 | } |