<?php
$db_host = "127.0.0.1";
$db_user = "root";
$db_pass = "";
function dbconnect($db_host, $db_user, $db_pass) {
$db_connect = mysql_connect($db_host, $db_user, $db_pass);
if (!$db_connect) {
die("Nepavyko prisijungti prie DB<br />".mysql_error());
}
}
dbconnect($db_host, $db_user, $db_pass);
?>