Web Design

profileoquinones
showtable21.php

Data in the Cars table

$dbase"); $mydb = new mysqli('localhost', $user, $pword, $dbase); if ($mydb->connect_error) { die( "Failed to connect to MySQL: " . $mydb->connect_error); } print (" "); print ("
name url
"); $query = "SELECT name, url FROM Cars;"; if ($result = $mydb->query($query)) { while ($row = $result->fetch_assoc()) { // Output the results as an html table print ("
"); foreach ( $row as $key => $value ) { print ("
$key : $value
"); } print (""); } } $mydb->close(); ?>