Answers for "php pdo update"

PHP
1

update pdo mysql php

$sql = "UPDATE users SET name=?, surname=?, sex=? WHERE id=?";$stmt= $pdo->prepare($sql);$stmt->execute([$name, $surname, $sex, $id]);
Posted by: Guest on January-21-2021
-1

update pdo mysql php

$sql = "UPDATE users SET name=?, surname=?, sex=? WHERE id=?";$pdo->prepare($sql)->execute([$name, $surname, $sex, $id]);
Posted by: Guest on January-21-2021
0

php pdo update

$data = [    'name' => $name,    'surname' => $surname,    'sex' => $sex,    'id' => $id,];$sql = "UPDATE users SET name=:name, surname=:surname, sex=:sex WHERE id=:id";$stmt= $pdo->prepare($sql);$stmt->execute($data);
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language