create database okul
--------------------
create table ogrenci
(
no int(15),
ad varchar(15),
soyad varchar(15)
)
--------------------
ayar.php
$host="localhost";
$kadi="root";
$sifre="";
$veritabani="okul";
$tablo="ogrenci";
$baglanti=mysql_connect($host,$kadi,$sifre);
if($baglanti)
{
echo"mysql sunucusu ile bağlantı kuruldu ";
}else
{echo "hata"; mysql_error();}
@mysql_select_db($veritabani,$baglanti)
or die("veritabanına baglanılmadı");
?>
-----------------------
form.php
|