Eto ti neshto koeto raboti sas sigurnost
<?php
function database($host,$user,$passwd,$db)
{
$links = @mysql_pconnect($host,$user,$passwd);
if ($links && mysql_select_db ($db));
return true;
return false;
}
//connect to db
database("localhost","root","","test") or die ("Error:",
mysql_error());
?>
|