note 130039 added to mysqli.select-db
| From: | pepgeorge@gmail.com | Date: | Tue, 18 Feb 2025 10:17:59 +0000 |
| Subject: | note 130039 added to mysqli.select-db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221863@lists.php.net to get a copy of this message | ||
// If you want to INSERT
public function insert ($objet)
{
try {
$id = $objet->id;
$name = $objet->name;
$sql = 'INSERT INTO table_name (id, name) VALUES (:id, :name)';
$stm = $this->conexion->prepare($sql);
$stm->bindParam(':id', $id, PDO::PARAM_INT);
$stm->bindParam(':name', $name, PDO::PARAM_STR);
$stm->execute();
} catch (PDOException $e) {
return "ERROR: " . $e->getMessage();
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 81.47.20.33)
----
Manual Page -- https://php.net/manual/en/mysqli.select-db.php
Edit -- https://main.php.net/note/edit/130039
Del: integrated -- https://main.php.net/note/delete/130039/integrated
Del: useless -- https://main.php.net/note/delete/130039/useless
Del: bad code -- https://main.php.net/note/delete/130039/bad+code
Del: spam -- https://main.php.net/note/delete/130039/spam
Del: non-english -- https://main.php.net/note/delete/130039/non-english
Del: in docs -- https://main.php.net/note/delete/130039/in+docs
Del: other reasons-- https://main.php.net/note/delete/130039
Reject -- https://main.php.net/note/reject/130039
Search -- https://main.php.net/manage/user-notes.php