open($dbc['database'], $dbc['server'], $dbc['user'], $dbc['pass']) == 0) { header("Location: err_db.htm"); exit(); } $q->query($DB, "SELECT * FROM bulletin where Auto_Id = $id"); if ($q->numrows() > 0) { for ($i = 0; $i < $q->numrows(); $i++) { $date = fConvertDateSql($q->field("Date_Create", $i)); $out = ""; $out .= "\n"; $out .= "\n"; $out .= ""; $out .= ""; $out .= ""; $out .= ""; $out .= "\n"; $out .= ""; $out .= ""; $out .= "
\n"; $out .= ""; $out .= "
" . $q->field("Title", $i) . "
" . $q->field("Messages", $i) . "
"; $out .= $date . " " . $q->field("Time_Create", $i); $out .= "
BACK
\n

"; $out = preg_replace("/\"/", "'", $out); $out = preg_replace("/\n/", "", $out); $out = preg_replace("/\r/", "", $out); echo "$out"; } } ?>