<?php
function mcs()
{
$db = @mysql_connect("localhost", "admin") or die ("Mysql connection failed");
global $db;
if($db)
$dbs = @mysql_select_db("gds") or die ("Database selection failed");
}
function md()
{
$dbc = @mysql_close($db) or die ("Closing mysql connection failed");
}
mcs();
md();
?>
Warum funzt das net? Was bedeutet das @vor der mysqlfuntion eigentlich?
function mcs()
{
$db = @mysql_connect("localhost", "admin") or die ("Mysql connection failed");
global $db;
if($db)
$dbs = @mysql_select_db("gds") or die ("Database selection failed");
}
function md()
{
$dbc = @mysql_close($db) or die ("Closing mysql connection failed");
}
mcs();
md();
?>
Warum funzt das net? Was bedeutet das @vor der mysqlfuntion eigentlich?
Kommentar