Hello
and
Start
Connect
Select
Update
Insert
Delete
Code example - Insert
try{ $query = $pdo->prepare("insert into address_book (first_name,last_name,country) values (:first_name,:last_name,:country)"); $data = array( ':first_name' => $first_name, ':last_name' => $last_name, ':country' => 'Land' ); $query->execute($data); $update_message = "Data successfully inserted into the database table ..."; }catch(PDOException $e){ $update_message = "Error! failed to insert into the database table :".$e->getMessage(); }
Action
––>
No action taken