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 = '
';