"; $httpString = $httpString . "\n"; $sqlcmd = "SELECT oid, code, texte FROM activite.t_budgets ORDER BY code "; $result = $database->exec($sqlcmd); if ($result != false) { // lignes $ok = TRUE; while ($ok == TRUE) { $ok = FALSE; $record = $database->nextRecordInto(); if ($record != FALSE) { $ok = TRUE; $oid = floatval(trim($record[0])); $code = toHTML(trim($record[1])); $texte = toHTML(trim($record[2])); $httpString = $httpString . "\r\n \r\n"; } } } $httpString = $httpString . "\n"; $httpString = compress64($httpString); echo "$httpString"; ?>