Teşekkürler. Benim sıkıntıya sokan kodların bundan sonrası. İnternette araştırdığım ve de sizin verdiğiniz kodlar sayesinde belli bir yere kadar gelebiliyorum ama sonuç o. Login php config.php de bulunan bir şifreden kontrol yapıyordu. Ben bunu tamamen kaldırıp yerine kullanıcı adı ve şifre getirmek. Benim kodlarım:

giris.php

<?php
include"baglanti.php";

if($_POST['id'] == "" || $_POST['key'] == "") {
echo "Lütfen Tüm Alanları Doldurun";
}else{

$uyead = strip_tags(mysql_real_escape_string($_POST['id']));
$sifre = strip_tags(mysql_real_escape_string($_POST['key']));
$sifre = sha1($sifre);
$sql = mysql_query("select * from uyeler where  uye_ad='$uyead' and uye_sifre='$sifre'  ");
$uyevarmi = mysql_num_rows($sql);
if($uyevarmi == 0) {
echo "Incorrect username or password.";
} else {

$uyebilgi = mysql_fetch_array($sql);
$expire=time()+60*60*24*30;
setcookie("uyeid", "$uyebilgi[uye_id]", $expire);
setcookie("uyead", "$uyebilgi[uye_ad]", $expire);
setcookie("uyemail", "$uyebilgi[uye_mail]", $expire);

echo "<script>location.href='index.php';</script>"; // javascript yönlendirme kodu
} // if($uyevarmi == 0) kontrolü bitişi
}//textbox post verileri içerik kontrolü

?>
login.php

<?php
ob_start();
if(!ini_get('safe_mode')){
            set_time_limit(60);
} 
error_reporting(0); 
ignore_user_abort(TRUE);
define('vinaget', 'yes');
include("config.php");
date_default_timezone_set('Asia/Saigon');

if ($_GET['go']=='logout') {
		setcookie("secureid", "owner", time());
} 
else {
	$login = false;
	foreach ($SecureID as $login_vng)
	if($_POST['secure'] == $login_vng){
		if($mod10s) {
			$data = file_get_contents("http://france-10s.net/login/ip/".$_SERVER['REMOTE_ADDR']);
			if(stristr($data,"whitelist")==false) die("<h2><font color=purple>Detect fraud in the counter!</font></h2><br><b>If you are a mod now 10s.asia please use the nickmod and post the following: <font color=brown>hello ajinomoto!</font> in the Cbox then login again.");
		}
		#-----------------------------------------------
		$file = $fileinfo_dir."/log.txt";	//	Rename *.txt
		$date = date('H:i:s Y-m-d');
		$entry  = sprintf("Passlogin=%s\n", $_POST["secure"]);
		$entry .= sprintf("IP: ".$_SERVER['REMOTE_ADDR']." | Date: $date\n");
		$entry .= sprintf("------------------------------------------------------------------------\n");
		$handle = fopen($file, "a+")
		or die('<center><font color=red size=3>could not open file! Try to chmod the file "<b>log.txt</b>" to 666</font></center>');
		fwrite($handle, $entry)
		or die('<center><font color=red size=3>could not write file! Try to chmod the file "<b>log.txt</b>" to 666</font></center>');
		fclose($handle);
		#-----------------------------------------------
		setcookie("secureid",md5($login_vng),time()+3600*24*7);
		$login = true;
	}
	if($login == false) die("<SCRIPT language='Javascript'>alert(\"Wrong password!\");</SCRIPT><SCRIPT language='Javascript'>history.go(-1)</SCRIPT>");
}
header("location: index.php");
ob_end_flush();
?>


--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 19:34:35 -->-> Daha önceki mesaj 19:22:01 --

Şimdi biraz daha yaklaştım sonuca sanırım.

Ama 2 tane var karşımda:
7.satır: $sonuc = mysql_num_rows($sorgu);
10.satır: header("Location: login.php");

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/hubturk/public_html/kontrol.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /home/hubturk/public_html/kontrol.php:7) in /home/hubturk/public_html/kontrol.php on line 10
Axerhosting adlı üyeden alıntı: mesajı görüntüle
Giriş formunun action'una örnek kontrol.php yazın kontrol.php'ye alttakileri yazın,config dosyanızı include etmeyi unutmayın.
Form elemanlarından kullanıcı adını aldığınızın name değeri kullaniciadi parola aldığınızın parola olsun örnek
<input type="text" name="kullaniciadi" />
<input type="password" name="parola" />
kontrol.php içeriği alttaki

<?php
	$username = $_POST[kullaniciadi];
	$password = $_POST[parola];
	
	$sorgu = mysql_query("SELECT * FROM tablo WHERE kullaniciadi='$username' AND parola='$password'");
	$sonuc = mysql_num_rows($sorgu);
	
	if($sonuc == 0){
		header("Location: login.php");
		}else{
		header("Location: index.php");
	}
?>