Parašė Noyz· 2010 Lap. 25 19:11:25
#1
Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\pr\login.php on line 16
?|?| pirmą kartą tokią matau, pasimečiau, viskas iki 16 eilutės :
<?php
$username = $_POST['username'];
$password = $_POST['password'];
$login = $_GET['login'];
setcookie("username","$username",time()+86400);
if($login=='yes') {
$con = mysql_connect ("localhost","root","");
mysql_select_db("login");
$get = mysql_query("SELECT count(id) FROM login WHERE user='$username' and pass='$password'");
$result = mysql_result($get, 0);
Čia pati 16 :
Redagavo Noyz· 2010 Lap. 25 19:11:53