<html>
<body>
<?php
echo "mysql_connect function test...";
echo "<br><br>";
echo "Three parameters: ";
$connectionID = 0;
$connectionID = mysql_connect(localhost, <nomeutente>, <password>)
or die("Connection error: " . mysql_error());
echo $connectionID;
mysql_close($connectionID);
echo "<br><br>";
echo "My SQL Server Info:";
echo "<br><br>";
printf ("Version of MySQL server: %s\n", mysql_get_server_info());
echo "<br><br>";
echo "My SQL Client Info:";
echo "<br><br>";
printf ("Version of MySQL client: %s\n", mysql_get_client_info());
echo "<br><br>";
echo "Five parameters: ";
$connectionID = 0;
$connectionID = mysql_connect(localhost, <nome utente>, <password>, false, 0)
or die("Connection error: " . mysql_error());
echo $connectionID;
mysql_close($connectionID);
echo "<br><br>";
?>
</body>
</html>