note 130038 added to mysqli.select-db
| From: | Anonymous | Date: | Tue, 18 Feb 2025 10:14:07 +0000 |
| Subject: | note 130038 added to mysqli.select-db | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221862@lists.php.net to get a copy of this message | ||
// If you want to do an update:
public function update($object)
{
try {
$id = $object->id;
$name = $object->name;
$sql = 'UPDATE table_name SET id = :id, name = :name WHERE id = :id';
$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: 2a02:9130:9c20:ac6e:e06c:8d71:11e:bf51)
----
Manual Page -- https://php.net/manual/en/mysqli.select-db.php
Edit -- https://main.php.net/note/edit/130038
Del: integrated -- https://main.php.net/note/delete/130038/integrated
Del: useless -- https://main.php.net/note/delete/130038/useless
Del: bad code -- https://main.php.net/note/delete/130038/bad+code
Del: spam -- https://main.php.net/note/delete/130038/spam
Del: non-english -- https://main.php.net/note/delete/130038/non-english
Del: in docs -- https://main.php.net/note/delete/130038/in+docs
Del: other reasons-- https://main.php.net/note/delete/130038
Reject -- https://main.php.net/note/reject/130038
Search -- https://main.php.net/manage/user-notes.php