Search code snippets, questions, articles...

UPDATE DB using OOP class

<?php
//Update DB
    public function updateUser($email) {
        $sql = 'UPDATE users SET email = ? WHERE id = 1';
        $stmt = $this->connect()->prepare($sql);
        $stmt->execute([$email]);
    }
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place.

UPDATE

DB

OOP

Search Index Data (The code snippet can also be found with below search text)

UPDATE
DB
OOP
Was this helpful?
0 Comments