php

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

Was this helpful?