change to SQL
This commit is contained in:
parent
0dccb4bab2
commit
5a56668c93
|
@ -28,7 +28,7 @@ if ($conn->connect_error) {
|
|||
|
||||
function saveToDatabase($contentArray, $conn) {
|
||||
echo "sending Query to Database<br>";
|
||||
$sql = "SELECT * FROM `topics` WHERE id='".$contentArray[0]."'";
|
||||
$sql = "SELECT * FROM `topics` WHERE 1";
|
||||
$result = $conn->query($sql);
|
||||
echo "Select Query sent<br> Result: " . $result;
|
||||
if($result === 0) {
|
||||
|
|
Loading…
Reference in New Issue