Merhaba arkadaşlar;
Benim sorunum şu şekilde bir üyelik sistemi oluşturuyorum kendime göre. Kullanıcıların üye olması için kayıt olması gerekiyor bu kayıt için 7 adet form açtm ve bu formlarla bilgilerini veritabanına kaydetmeye çalıştım. Fakat veri tabanına aktarırken oluşturduğum tabloda hata verdi acaba neden?
phpmyadmin veritabanında futbol adlı veritabanı açıp altında uyeler adında bir tablo oluşturdum ve gereken alanları atadım. ( Bu alanlar hariç sıralama yapması için id değerinide atadım.)
Daha açıklayıcı olması için kodları vereyim.
Üyeol.php sayfası :
<form id="form1" name="form1" method="post" action="uyegiris.php">
<table width="452" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="104" scope="col"><div align="left"></div></th>
<th width="21" scope="col"> </th>
<th width="201" scope="col"> </th>
<th width="126" scope="col"> </th>
</tr>
<tr>
<th scope="col"><div align="left">Adınız</div></th>
<th scope="col">:</th>
<th scope="col"><label>
<input name="ad" type="text" id="ad" />
</label></th>
<th scope="col"> </th>
</tr>
<tr>
<th scope="col"><div align="left">Soyadınız </div></th>
<th scope="col">:</th>
<th scope="col"><label>
<input name="soyad" type="text" id="soyad" />
</label></th>
<th scope="col"> </th>
</tr>
<tr>
<th scope="col"><div align="left">Kullanıcı Adı</div></th>
<th scope="col">:</th>
<th scope="col"><label>
<input name="nick" type="text" id="nick" />
</label></th>
<th scope="col"> </th>
</tr>
<tr>
<th scope="col"><div align="left">Şifre </div></th>
<th scope="col">:</th>
<th scope="col"><label>
<input name="sifre" type="password" id="sifre" />
</label></th>
<th scope="col"> </th>
</tr>
<tr>
<th scope="col"><div align="left">Şifre Tekrar </div></th>
<th scope="col">:</th>
<th scope="col"><label>
<input name="sifre1" type="password" id="sifre1" />
</label></th>
<th scope="col"> </th>
</tr>
<tr>
<th scope="col"><div align="left">e-posta</div></th>
<th scope="col">:</th>
<th scope="col"><label>
<input name="eposta" type="text" id="eposta" value="@" />
</label></th>
<th scope="col"> </th>
</tr>
<tr>
<th scope="col"><label>
<input type="reset" name="Submit2" value="Temizle" />
</label></th>
<th scope="col"> </th>
<th scope="col"><label>
<input type="submit" name="Submit" value="Kayıt Ol" />
</label></th>
<th scope="col"> </th>
</tr>
</table>
</form>uyegiris.php adlı sayfa :
<?php
@mysql_connect("localhost","root","123456") or die("HATA");
@mysql_select_db("futbol") or die(" VERİTABANI HATASI");
$ad = $_POST['ad'];
$soyad = $_POST['soyad'];
$nick = $_POST['nick'];
$sifre = $_POST['sifre'];
$sifre1 = $_POST['sifre1'];
$eposta = $_POST['eposta'];
$sql = "INSERT INTO uyeler (id,ad,soyad,nick,sifre,sifre_t,eposta) VALUES ('$ad','$soyad','$nick','$sifre','$sifre1','$eposta')";
@mysql_query($sql) or die(" TABLO HATASI");
echo "Bilgileriniz veritabanina basariyla kaydedildi !";
mysql_close();
?>uyegiris.php de sorun var son kodlarda fakat neden bilmiyorum. xS
Şimdiden teşekkürler hepinize...