change to SQL

This commit is contained in:
schrom01 2023-02-15 14:30:51 +01:00
parent 5a56668c93
commit 41d160b8dc
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ if ($conn->connect_error) {
function saveToDatabase($contentArray, $conn) {
echo "sending Query to Database<br>";
$sql = "SELECT * FROM `topics` WHERE 1";
$sql = "SELECT id FROM `topics` WHERE 1";
$result = $conn->query($sql);
echo "Select Query sent<br> Result: " . $result;
if($result === 0) {