GMsichtplan by NE4Y

10/31/2012 15:29 The2MrMetin2#1
wenn ich mich einlogge steht da da :
PHP Code:
Warningmysql_fetch_assoc() expects parameter 1 to be resourceboolean given in /home/www/cwcity/hosting/s/k/s/htdocs/hp/GMs/sites/login_check.php on line 8

Warning
mysql_num_rows() expects parameter 1 to be resourceboolean given in /home/www/cwcity/hosting/s/k/s/htdocs/hp/GMs/sites/login_check.php on line 15

Fehler
Überprüfen sie ihre Eingabe
10/31/2012 16:31 DasKuchen#2
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/www/cwcity/hosting/s/k/s/htdocs/hp/GMs/sites/login_check.php on line 8

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in /home/www/cwcity/hosting/s/k/s/htdocs/hp/GMs/sites/login_check.php on line 15

Kenne das Script nicht was steht in Zeile 8 und Zeile 15 ?
10/31/2012 16:39 The2MrMetin2#3
login_check:

PHP Code:
<?php 
if(isset($_POST['login'])) {
         if(!empty(
$_POST['userID']) && !empty($_POST['userPW']) && checkLogin($_POST['userID']) && checkLogin($_POST['userPW'])) {
               
$sql "SELECT id, login, password FROM account  WHERE login='".mysql_real_escape_string($_POST['userID'])."' 
      AND password=PASSWORD('"
.mysql_real_escape_string($_POST['userPW'])."') 
     "
;
      
$sqlQry mysql_query($sql);
      
$sqlCheck mysql_fetch_assoc($sqlQry);
      
      
$selectGM mysql_query("SELECT mAccount FROM common.gmlist WHERE mAccount='".$_POST['userID']."'");
      
    
      
      
      if(
mysql_num_rows($sqlQry)>0
      {
            if(
mysql_num_rows($selectGM) != 0) {
        
$getStuff mysql_fetch_object($sqlQry);
       
        
$_SESSION['username'] = "hi";
       
       
       echo
'<p>Erfolgreich eingeloggt. Weiterleitung in 1 Sekunde. <meta http-equiv="refresh" content="1; URL=index.php">';
        
        
        
      }
      else {
        
          echo
'<p>Sie sind kein GM</p>';
          echo 
mysql_error();
      }
         
         }
         else {
             echo
'<p>Fehler. &Uuml;berprüfen sie ihre Eingabe.</p>';
         }
         }
      else {
    
         echo
'<p>Login war nicht erfolgreich. &Uuml;berprüfen sie ihre Eingabe</p>';
      
    }
}
?>
Line 8:
PHP Code:
      $sqlCheck mysql_fetch_assoc($sqlQry); 
line15:
PHP Code:
     if(mysql_num_rows($sqlQry)>0
10/31/2012 16:45 DasKuchen#4
hau ganz oben in den Script einfach mal das rein:

echo mysql_error();

Dann müsste er den genauen error sagen.
10/31/2012 16:53 The2MrMetin2#5
PHP Code:
Warningmysql_fetch_assoc() expects parameter 1 to be resourceboolean given in /home/www/cwcity/hosting/s/k/skillzworld2/htdocs/hp/GMs/sites/login_check.php on line 9

Warning
mysql_num_rows() expects parameter 1 to be resourceboolean given in /home/www/cwcity/hosting/s/k/skillzworld2/htdocs/hp/GMs/sites/login_check.php on line 16

Fehler
Überprüfen sie ihre Eingabe