Die beiden Funktionen stehen in einer PHP-Datei. function get_data($sql, &$result) { $cnn = odbc_connect ("hupr1", "root", ""); if (!$cnn) { return "Database connection failed!"; } else { $result = odbc_exec($cnn, $sql); if (!$result) {return "Wrong SQL statement!";} else { if (odbc_fetch_row($result, 1) == true) { return -1; } else { return "No data"; } } } } /*--------------------------------------------------------------------------------------- */ function field_value(&$value, $result, $i, $field) { if (odbc_fetch_row($result, $i) == true) { $value=odbc_result($result, $field); return true; } else { $value=""; return false; } } In der PHP-Datei, die den Text ausgeben soll steht dann dieser Auszug: Das Feld um das es geht ist: article_cDescription. $sqlArticle = "SELECT * FROM article WHERE (volume_nID = ".$volume_nID.") AND (category_nID = ".$category_nID.")"; if (get_data($sqlArticle, $resultArticle) == -1) { $j = 1; while (field_value($article_nID, $resultArticle, $j, "article_nID") <> false) { field_value($article_cTitle, $resultArticle, $j, "article_cTitle"); field_value($category_nID, $resultArticle, $j, "category_nID"); field_value($article_cDescription, $resultArticle, $j, "article_cDescription"); $j++; }//END WHILE FOR article $i++; } //END IF