Search code snippets, questions, articles... Chrome Extension

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. Check how cool is the tool

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
Join Devsheet Ask a Question