
habe mit folgendem PHP Code das im Titel beschriebene Problem :
PHP Code:
public static function getList( $numRows=1000000, $order="publicationDate DESC" ) {
$conn = new PDO('sqlite:'.wpm_DATABASE);
$sql = "SELECT SQL_CALC_FOUND_ROWS *, UNIX_TIMESTAMP(publicationDate) AS publicationDate FROM articles ORDER BY " . mysql_real_escape_string($order) . " LIMIT :numRows";
$st = $conn->prepare( $sql );
$st->bindValue( ":numRows", $numRows, SQLITE3_INTEGER);
$st->execute();
$list = array();
while ( $row = $st->fetch() ) {
$article = new Article( $row );
$list[] = $article;
}

Danke schon mal im Voraus.
Rene
Comment