I am basically just trying to update multiple values in my table. What would be the best way to go about this? Here is the current code:
$postsPerPage = $_PO
If you are using pdo, it will look like
$sql = "UPDATE users SET firstname = :firstname, lastname = :lastname WHERE id= :id"; $query = $this->pdo->prepare($sql); $result = $query->execute(array(':firstname' => $firstname, ':lastname' => $lastname, ':id' => $id));