Hi people,
I've got a few lines of code that check a user's id, then update a field in the database to '1'. Unfortunately its not working and wondering if someone can help troubleshoot:
Part 1 (in confirmaccount.php)
Part 2 (in usermodel.php)PHP Code:$this->usersmodel->updatePremiumCC($account["id"]);
CheersPHP Code:public function updatePremiumCC($userid)
{
$sql = "UPDATE users SET ccdetails = '1' AND featured = '1' WHERE id = $userid";
$this->db->query($sql);
}



Reply With Quote

Bookmarks