Closed esferium closed 2 years ago
Information
Describe the Problem
Using a sql statement in $database->query("select ...")->fechAll returns json object, with the names of the columns, but also with the id of the column.
{ "title": "title example", "0": "title example"}
Expected output { "title": "title example" }
$database->query("select...")->fechAll (2) $database->query("select...")->fechAll (PDO::FETCH_ASSOC)
https://www.php.net/manual/es/pdostatement.fetchall.php
Information
Describe the Problem
Using a sql statement in $database->query("select ...")->fechAll returns json object, with the names of the columns, but also with the id of the column.
{ "title": "title example", "0": "title example"}
Expected output { "title": "title example" }