0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { echo "id: " . $row["id"]. " - Name: " . $row["name"]. " " . $row["email"]. "
"; } } else { echo "0 results"; } ?>
This code updates the name of the customer with id=1 to "John Doe". The package library for PHP DB field is mainly the mysqli or PDO extension provided by PHP. These extensions provide functions to interact with the database using PHP code.