kullanıcı adı şifre doğru olduğu halde admin panele girmiyor..
sadece yerinde sekiyor.?
(şifre yanlış olduğunda şifre yanlıştır ibaresi çıkıyor)
sessionda bir problem olabilirmi ?
index.php parola.php'ye include ediyor...
sqldeki parola şifre doğru..
parola.php
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>YÖNETİM PANELİ</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p> </p>
<p> </p>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td><table width="551" height="236" border="0" cellpadding="10" cellspacing="1" class="tablo">
<tr>
<td width="559" height="214" valign="top"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="57" class="baslik2">YÖNETİM PANELİ</td>
</tr>
<tr>
<td height="150" valign="top"><div align="center" class="yaz">
<div align="left">
</div>
</div>
<table width="59%" border="0" align="center" cellpadding="0" cellspacing="0">
<form id="form1" name="form1" method="post" action="parola2.php"> <tr>
<td width="30%" height="28" class="yaz">Kullanıcı Adı</td>
<td width="5%" class="yaz">:</td>
<td width="65%"><input name="kul" type="text" class="form" id="kul" /></td>
</tr>
<tr>
<td height="28" class="yaz">Şifre</td>
<td class="yaz">:</td>
<td><input name="sifre" type="password" class="form" id="sifre" /></td>
</tr>
<tr>
<td height="28"> </td>
<td> </td>
<td><input type="submit" name="button" id="button" value="Giriş" /></td>
</tr> </form>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>parola2.php
<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>YÖNETİM PANELİ</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p> </p>
<p> </p>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td><table width="551" height="236" border="0" cellpadding="10" cellspacing="1" class="tablo">
<tr>
<td width="559" height="214" valign="top"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="57" class="baslik2">YÖNETİM PANELİ</td>
</tr>
<tr>
<td height="150" valign="top">
<div align="center" class="yaz">
<?
$kul=$_POST["kul"];
$sifre=$_POST["sifre"];
include("../includes/connect.php");
$SQL = "SELECT * FROM admin where kul='$kul' and sifre='$sifre'";
$sorgu = mysql_query($SQL,$connect);
$count=mysql_num_rows($sorgu);
if((int)$count!=0)
{
//$_SESSION["kul"]=$kul;
//$_SESSION["sifre"]=$sifre;
session_register("sifre");
session_register("kul");
header("Location:index.php");
}
else
{
echo "Hatalı Bilgi Girdiniz. Lütfen tekrar Deneyiniz";
}
?>
<br />
<br />
<table width="59%" border="0" align="center" cellpadding="0" cellspacing="0">
<form id="form1" name="form1" method="post" action="parola2.php">
<tr>
<td width="30%" height="28" class="yaz"><div align="left">Kullanıcı Adı</div></td>
<td width="5%" class="yaz"><div align="left">:</div></td>
<td width="65%"><div align="left">
<input name="kul" type="text" class="form" id="kul" />
</div></td>
</tr>
<tr>
<td height="28" class="yaz"><div align="left">Şifre</div></td>
<td class="yaz"><div align="left">:</div></td>
<td><div align="left">
<input name="sifre" type="password" class="form" id="sifre" />
</div></td>
</tr>
<tr>
<td height="28"><div align="left"></div></td>
<td><div align="left"></div></td>
<td><div align="left">
<input type="submit" name="button" id="button" value="Giriş" />
</div></td>
</tr>
</form>
</table>
</div></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>parola3.php
<?php
session_start();
include("../includes/connect.php");
$kul=$_SESSION["kul"];
if (! $kul)
{
header("Location:parola.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>YÖNETİM PANELİ</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p> </p>
<p> </p>
<table width="200" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td><table width="551" height="236" border="0" cellpadding="10" cellspacing="1" class="tablo">
<tr>
<td width="559" height="214" valign="top"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="57" class="baslik2">YÖNETİM PANELİ - Kullanıcı Bilgileri degiştirme</td>
</tr>
<tr>
<td height="150" valign="top">
<div align="center" class="yaz">
<?
$eskikul=$_POST["eskikul"];
$eskisifre=$_POST["eskisifre"];
$kul=$_POST["kul"];
$sifre=$_POST["sifre"];
include("../includes/connect.php");
$SQL = "SELECT * FROM admin where kul='$eskikul' and sifre='$eskisifre'";
$sorgu = mysql_query($SQL,$connect);
$count=mysql_numrows($sorgu);
$record=mysql_fetch_array($sorgu);
$id=$record["id"];
if($count)
{
$sql2="UPDATE admin set kul='$kul',sifre='$sifre' where id=$id";
$sorgu1 = mysql_query($sql2,$connect);
echo "Kullanıcı Bilgileriniz Güncellendi.<br><br><br><a href='index.php'>YÖNETİM SAYFASINA GİT</a><br><br><br>";
}
else
{
echo "Hatalı Bilgi Girdiniz. Lütfen tekrar Deneyiniz";
}
?>
<br />
<br />
<table width="59%" border="0" align="center" cellpadding="0" cellspacing="0">
<form id="form1" name="form1" method="post" action="parola3.php">
<tr>
<td width="30%" height="22" class="yaz"><div align="left">Eski Kullanıcı Adı</div></td>
<td width="5%" class="yaz"><div align="left">:</div></td>
<td width="65%"><div align="left">
<input name="eskikul" type="text" class="form" id="eskikul" />
</div></td>
</tr>
<tr>
<td width="30%" height="22" class="yaz"><div align="left">Eski Şifre</div></td>
<td width="5%" class="yaz"><div align="left">:</div></td>
<td><div align="left">
<input name="eskisifre" type="password" class="form" id="eskisifre" />
</div></td>
</tr>
<tr>
<td height="22" class="yaz"><div align="left"></div></td>
<td width="5%" class="yaz"><div align="left"></div></td>
<td><div align="left"></div></td>
</tr>
<tr>
<td height="22" class="yaz"><div align="left">Kullanıcı Adı</div></td>
<td width="5%" class="yaz"><div align="left"></div></td>
<td><div align="left">
<input name="kul" type="text" class="form" id="kul" />
</div></td>
</tr>
<tr>
<td height="22" class="yaz"><div align="left">Şifre</div></td>
<td class="yaz"><div align="left">:</div></td>
<td>
<div align="left">
<input name="sifre" type="password" class="form" id="sifre" />
</div></td>
</tr>
<tr>
<td height="22"><div align="left"></div></td>
<td><div align="left"></div></td>
<td>
<div align="left">
<input type="submit" name="button" id="button" value="Giriş" />
</div></td>
</tr>
</form>
</table>
</div></td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>sıralamayı karışık yazmışım düzelttim..