Question: populate / insert data for your table via phpmyadmin modify the DBContact.php to show the newly populated content in your database table Here is my

populate/insert data for your table via phpmyadmin
modify the DBContact.php to show the newly populated content in your database table Here is my DBContact.php file: connect_error){
die("Connection failed: ". $conn->connect_error);
}
// Query to database with table name contacts
$result = $conn->query("SELECT * FROM contacts");
// Display the result
if ($result->num_rows >0){
// Output data of each row
while ($row = $result->fetch_assoc()){
echo "Name: ". $row["name"]."";
echo "Email: ". $row["email"]."";
echo "Phone: ". $row["phone"]."";
}
} else {
echo "0 results";
}
// Close connection
$conn->close();
?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!