I'm looking for fragments of HTML with fetch() and adding to DOM with function insertAdjacentHTML() in loop for() ... the function that performs this task is in Promise() and its% return (in case of succ...
The following code has an undefined method error on the line:
$result = ($exec!==false)?$exec->fetchAll(PDO::FETCH_ASSOC):$exec;
public function getConnection(){
global $conn;
$this->conn = $conn;...
I'm using fetchAll (PDO :: FETCH_NAMED) to get the records from my database.
I received the following array
Array (
[0] => Array (
[idAgenda] => 2
[dataAgenda] => 1996-02-14
[lo...