Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better PHP5

  • Loading branch information...
commit 3b785335ca5424d817374f33d7e516882aa594c8 1 parent 9ac68b1
@skinkie skinkie authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  overzicht.php
View
3  overzicht.php
@@ -8,11 +8,12 @@
for ($i=0; $i<=60; $i++) {
$start = $now;
$end = $now;
+ $curday = date('N', $now);
$stmt = $dbh->prepare('SELECT sum(content_text.duration) AS totaal FROM content_run, content_text WHERE content_run.enabled = 1 AND (content_run.day = 0 or content_run.day = :curday) AND content_run.start <= :start AND content_run.eind >= :end AND content_text.contentid = content_run.contentid;');
$stmt->bindParam(':start', $start, PDO::PARAM_INT);
$stmt->bindParam(':end', $end, PDO::PARAM_INT);
- $stmt->bindParam(':curday', date('N', $now), PDO::PARAM_INT);
+ $stmt->bindParam(':curday', $curday, PDO::PARAM_INT);
$stmt->execute();
$result = $stmt->fetchAll();
Please sign in to comment.
Something went wrong with that request. Please try again.