From 8b2796d00a7b8312172cb2898ab5662eb79acaa1 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Wed, 15 Feb 2023 14:32:25 +0100 Subject: [PATCH] change to SQL --- dataCollector/dataCollector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataCollector/dataCollector.php b/dataCollector/dataCollector.php index 7307251..a4646b6 100644 --- a/dataCollector/dataCollector.php +++ b/dataCollector/dataCollector.php @@ -28,7 +28,7 @@ if ($conn->connect_error) { function saveToDatabase($contentArray, $conn) { echo "sending Query to Database
"; - $sql = "SELECT id FROM `topics` WHERE 1"; + $sql = "SELECT * FROM `topics` WHERE 1"; $result = $conn->query($sql); echo "Select Query sent
Result: " . $result; if($result === 0) {