Plötzliche Fehlermeldung

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

  • Plötzliche Fehlermeldung

    Hallo Leute,

    mei script hat jetzt lang funktioniert, jetzt streikt es plötzlich
    und bei der suche nach einem datenbank eintrag bekomm ich folgende Meldung:

    Search for titles in the mylibrary database
    Search for titles beginning with f:
    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in d:\programme\apache group\apache\htdocs\bibli\find.php on line 230



    --------------------------------------------------------------------------------


    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in d:\programme\apache group\apache\htdocs\bibli\find.php on line 245

    Back to search form.

    Der Code schaut so aus in Z. 230 ff:
    PHP-Code:

          
    // copy authors into array
          
    while($row mysql_fetch_object($result2)) {
            
    // seperate authors by a comma
            
    if($authors[$row->titleID]) 
              
    $authors[$row->titleID] .= ", ";
            
    // add author to author's list; because of ORDER BY clause
            // in the SQL statement the authors are ordered correctly
            
    $tmp build_href("./find.php"
                              
    "sqlType=title&authID=$row->authID"
                              
    last_name_last($row->author));
            
    $authors[$row->titleID] .= $tmp;
          } 
    In 245 so:
    PHP-Code:
     // show title list
          
    echo "<hr><ul>\n";
          
    $titlecount=0;
          while(
    $row mysql_fetch_object($result1)) {(  z245)
            
    $titlecount++;
            if(
    $titlecount<=$pagesize) {
              if(
    $row->publisher)
                
    $publref build_href("./find.php"
                                      
    "sqlType=title&publID=$row->publID"
                                      
    $row->publisher); 
    Wär super wenn jemand ne Idee hätte woher das kommt?



    Norok
    Zuletzt geändert von Wotan; 12.02.2004, 10:03.

  • #2
    Re: Plötzliche Fehlermeldung

    Original geschrieben von Norok
    Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource
    das argument, das du an die funktion übergibst, stellt keine gültige mysql-ergebniskennung dar.

    lass dir den query-string, den du für die DB-abfrage verwendest, mal zu kontrolle ausgeben.

    und füge bei mysql_query eine fehlerabfrage an,
    ... = mysql_query(...) or die(mysql_error());


    ausgaben?
    I don't believe in rebirth. Actually, I never did in my whole lives.

    Kommentar

    Lädt...
    X