diff --git a/dataCollector/dataCollector.php b/dataCollector/dataCollector.php index 055b9df..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 * FROM `topics` WHERE id='".$contentArray[0]."'"; + $sql = "SELECT * FROM `topics` WHERE 1"; $result = $conn->query($sql); echo "Select Query sent
Result: " . $result; if($result === 0) {