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]);
    }

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
Programming Feeds
Learn something new everyday on Devsheet