prepare($sql); $query->execute(); // show all the data from the "users" table inside the database var_dump($query->fetchAll());