Closed thomas-ayissi closed 2 years ago
Requête préparée souhaitée `function thesectionSelectOneById(PDO $db, int $id) { try { $sth = $db->prepare("SELECT * FROM thesection WHERE idsection = ?"); $sth->execute([$id]); return $result = $sth->fetch(PDO::FETCH_ASSOC); } catch (Exception $e) { return []; }
}`
Requête préparée souhaitée `function thesectionSelectOneById(PDO $db, int $id) { try { $sth = $db->prepare("SELECT * FROM thesection WHERE idsection = ?"); $sth->execute([$id]); return $result = $sth->fetch(PDO::FETCH_ASSOC); } catch (Exception $e) { return []; }
}`