Hello
and
Start
Connect
Select
Update
Insert
Delete
Code example - Update
try{ $query = $pdo->prepare("update address_book set first_name = :first_name, last_name = :last_name where id = :id"); $data = array( ':id' => $update_id, ':first_name' => $_POST['first_name'], ':last_name' => $last_name ); $query->execute($data); $update_message = "Data successfully updated into the database table ..."; }catch(PDOException $e){ $update_message = "Error! failed to update into the database table ... :".$e->getMessage(); }
Action
––>
No action taken