From 77f05cf8a4a483fea9fe22980694a7895268edd5 Mon Sep 17 00:00:00 2001 From: BelPE Date: Wed, 7 Dec 2022 16:59:08 +0800 Subject: [PATCH] =?UTF-8?q?workout.html:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B7=D0=B0=D0=B4=D0=BD=D0=B8=D0=B9=20?= =?UTF-8?q?=D1=84=D0=BE=D0=BD=20=D1=87=D0=B5=D1=82=D0=BD=D1=8B=D1=85/?= =?UTF-8?q?=D0=BD=D0=B5=D1=87=D0=B5=D1=82=D0=BD=D1=8B=D1=85=20=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getData1.php | 3 ++- getData2.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/getData1.php b/getData1.php index 799b9cc..6dade8e 100644 --- a/getData1.php +++ b/getData1.php @@ -33,9 +33,10 @@ echo ""; echo '[' . $row["date"] . '] ' . $row["day_name"] . ''; echo ""; + $row_count = 0; } $tr = ''; - if ($row_count / 2 != 0) { + if ($row_count % 2 != 0) { $tr = ''; } else { $tr = ''; diff --git a/getData2.php b/getData2.php index ba9034c..3ccbf3a 100644 --- a/getData2.php +++ b/getData2.php @@ -33,9 +33,10 @@ echo ""; echo '[' . $row["date"] . '] ' . $row["day_name"] . ''; echo ""; + $row_count = 0; } $tr = ''; - if ($row_count / 2 != 0) { + if ($row_count % 2 != 0) { $tr = ''; } else { $tr = '';