<?php
$hostaneme = “127.0.0.1”;
$username = “root”;
$password = “root”;
$connection = mysql_connect($hostaneme,$username,$password);
if(!$connection)
{
die (“Sunucusu ile bağlantı kurulamadı!”);
}
$result = mysql_select_db(“test”);
if(!$result)
{
die(“veritabanı seçilmedi”);
}
echo “Veritabanı test kullanıma hazır.”;
?>
