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