fixed query

This commit is contained in:
Tóth Richárd
2019-11-21 22:07:13 +01:00
parent de638392f9
commit 941bcf846d

View File

@@ -9,7 +9,7 @@ else $sql = new sql('localhost','livingsp_coach','R186er012qw5','livingsp_badmin
//get today trainings //get today trainings
$today = date("Y-m-d"); $today = date("Y-m-d");
$trainings = $sql->assoc_array("SELECT * FROM training WHERE tr_deleted = 0 AND tr_date LIKE '{$today}%'"); $trainings = $sql->assoc_array("SELECT * FROM training WHERE tr_locked = 0 AND tr_deleted = 0 AND tr_date LIKE '{$today}%'");
foreach ($trainings as $key => $training) { foreach ($trainings as $key => $training) {
$sql->update_table("training", array( $sql->update_table("training", array(