[MSSQL] Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [MSSQL] Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource

    Hallo zusammen

    Ich habe folgendes Problem:
    Hier habe ich code:

    function logged_in()
    {
    $sql="SELECT userid FROM users WHERE UserSession='".session_id()."' LIMIT 1";
    $res=mysql_query($sql);
    return ( mysql_num_rows($res)==1 ); [COLOR=crimson]//hier ist line 29[/COLOR]
    }


    Über Browser motzt er immer so:

    Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource on line 29


    Kann mir bitte jemand helfen?

    Ich wäre sehr dankbar.

    Gruss
    Zuletzt geändert von cannyms; 27.02.2006, 10:25.

  • #2
    http://www.php-resource.de/forum/sho...threadid=47906

    tipp: mysql_error()
    INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


    Kommentar


    • #3
      Vielen Dank
      Es funktioniert.

      Kommentar

      Lädt...
      X