mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
Add more fields
This commit is contained in:
parent
444eab22be
commit
073e4a59db
1 changed files with 6 additions and 6 deletions
|
@ -29,11 +29,11 @@ class Scheduler_commands extends ObjectYPT {
|
||||||
}
|
}
|
||||||
$sql = "SELECT * FROM " . static::getTableName() . " WHERE status='".self::$statusRepeat."' ";
|
$sql = "SELECT * FROM " . static::getTableName() . " WHERE status='".self::$statusRepeat."' ";
|
||||||
|
|
||||||
$minute = date('i');
|
$minute = intval(date('i'));
|
||||||
$hour = date('H');
|
$hour = intval(date('H'));
|
||||||
$day_of_month = date('d');
|
$day_of_month = intval(date('d'));
|
||||||
$month = date('m');
|
$month = intval(date('m'));
|
||||||
$day_of_week = date('w');
|
$day_of_week = intval(date('w'));
|
||||||
|
|
||||||
$sql .= " AND (repeat_minute IS NULL OR repeat_minute = {$minute}) ";
|
$sql .= " AND (repeat_minute IS NULL OR repeat_minute = {$minute}) ";
|
||||||
$sql .= " AND (repeat_hour IS NULL OR repeat_hour = {$hour}) ";
|
$sql .= " AND (repeat_hour IS NULL OR repeat_hour = {$hour}) ";
|
||||||
|
@ -41,7 +41,7 @@ class Scheduler_commands extends ObjectYPT {
|
||||||
$sql .= " AND (repeat_month IS NULL OR repeat_month = {$month}) ";
|
$sql .= " AND (repeat_month IS NULL OR repeat_month = {$month}) ";
|
||||||
$sql .= " AND (repeat_day_of_week IS NULL OR repeat_day_of_week = {$day_of_week}) ";
|
$sql .= " AND (repeat_day_of_week IS NULL OR repeat_day_of_week = {$day_of_week}) ";
|
||||||
|
|
||||||
//echo $sql;
|
echo $sql;exit;
|
||||||
$res = sqlDAL::readSql($sql);
|
$res = sqlDAL::readSql($sql);
|
||||||
$fullData = sqlDAL::fetchAllAssoc($res);
|
$fullData = sqlDAL::fetchAllAssoc($res);
|
||||||
sqlDAL::close($res);
|
sqlDAL::close($res);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue