pull/263/head
jprochazka 2016-10-17 11:58:56 -04:00
commit 42d6b03c10
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -93,7 +93,7 @@
$sql = "INSERT INTO ".$settings::db_prefix."notifications (flight, lastMessageCount) VALUES (:flight, :lastMessageCount)";
$sth = $dbh->prepare($sql);
$sth->bindParam(':flight', $flight, PDO::PARAM_STR, 10);
$sth->bindParam(':lastMessageCount', 0, PDO::PARAM_INT);
$sth->bindParam(':lastMessageCount', $a = 0, PDO::PARAM_INT);
$sth->execute();
$sth = NULL;
$dbh = NULL;

Wyświetl plik

@ -60,7 +60,7 @@
$sql = "SELECT * FROM ".$settings::db_prefix."blogPosts ORDER BY date ".$orderBy;
$sth = $dbh->prepare($sql);
$sth->execute();
$posts = $sth->fetchAll();
$posts = $sth->fetchAll(PDO::FETCH_ASSOC);
$sth = NULL;
$dbh = NULL;
return $posts;
@ -90,7 +90,7 @@
$sth = $dbh->prepare($sql);
$sth->bindParam(':title', $title, PDO::PARAM_STR, 100);
$sth->execute();
$blogPost = $sth->fetch();
$blogPost = $sth->fetch(PDO::FETCH_ASSOC);
$sth = NULL;
$dbh = NULL;
return $blogPost;

Wyświetl plik

@ -50,7 +50,7 @@
$sql = "SELECT name, address FROM ".$settings::db_prefix."links ORDER BY name";
$sth = $dbh->prepare($sql);
$sth->execute();
$links = $sth->fetchAll();
$links = $sth->fetchAll(PDO::FETCH_ASSOC);
$sth = NULL;
$dbh = NULL;
}
@ -79,7 +79,7 @@
$sth = $dbh->prepare($sql);
$sth->bindParam(':name', $name, PDO::PARAM_STR, 100);
$sth->execute();
$link = $sth->fetch();
$link = $sth->fetch(PDO::FETCH_ASSOC);
$sth = NULL;
$dbh = NULL;
return $link;