miscel adlı üyeden alıntı: mesajı görüntüle
Multibyte String kurulu mu?
kurulu hocam. Yani yüklü bileşenlerde mbstrings yazıyor.

--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 12:19:22 -->-> Daha önceki mesaj 12:06:08 --

şimdi hataları yazdırdım ekrana ancak sanırım sorun veritabanı bağlantısı değil. aşağıdaki hataları veriyor.

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\wamp\www\ilgi_program\php_pages\crm_secure_login.php on line 18
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\wamp\www\ilgi_program\php_pages\crm_secure_login.php on line 21
Kodlar :
<?php
ob_start();
include_once('../module_items/CRMvericonnect_item.php');

// username and password sent from form 
$kimlik = $_POST['kimlik']; 
$sifre = $_POST['sifre']; 

$codedsifre=sha1($sifre);

// To protect MySQL injection (more detail about MySQL injection)
$kimlik = stripslashes($kimlik);
$codedsifre = stripslashes($codedsifre);
$kimlik = mysql_real_escape_string($kimlik);
$codedsifre = mysql_real_escape_string($codedsifre);
$sql="SELECT * FROM crm1001 WHERE CRM1111='$kimlik' and CRM1112='$codedsifre'";
$result=mysql_query($sql);
18. Satır [B]$result_list = mysql_fetch_assoc($result);[/B]

// Mysql_num_row is counting table row
21. Satır [B]$count=mysql_num_rows($result);[/B]

// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1){

// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("kimlik");
session_register("codedsifre"); 
$kullanici_isim = $result_list['crm1102'];
$kullanici_soyisim = $result_list['crm1103'];
$tarih = date("d.m.Y");
$saat = date("H:i:s");
$log_query = mysql_query("INSERT INTO crm15001 (crm15102, crm15103, crm15104) values ('".$kullanici_isim." ".$kullanici_soyisim." sisteme giriş yaptı.', '$tarih', '$saat')");
header("location:../modules.php");
}
else {
error_reporting(E_ALL ^ E_NOTICE);
}
ob_end_flush();
?>