Einzelnen Beitrag anzeigen

Benutzerbild von malo
malo

Registriert seit: 19. Sep 2004
2.115 Beiträge
 
#6

Re: PHP/MySQL: Wie wird der Datensatz gespeichert (Formate..

  Alt 18. Sep 2005, 14:11
Das Thema nochmal kurz von mir aufgefrischt:

Code:
$result = mysql_query('SELECT id,title FROM ' . $table_prefix . 'index WHERE id="'.$mode['mode'].'"');
  while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
    {
     echo('<div class="headline">' . $row['title'] . "</div>\n");
     echo($row['content']);
    }
Jetzt hab ich das Problem, dass die while-Schleife niemals ausgeführt wird. Weiß grad jemand wieso? $result ist immerhin gesetzt, und hat imho auch den entsprechenden Inhalt... aber $row hat keinen Inhalt. Was muss ich anders machen?
  Mit Zitat antworten Zitat