/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// (1) Open the database connection // (2) Select the winestore database // (3) Run the query on the winestore through the connection wine", $connection); // (4) While there are still rows in the result set, fetch the current // row into the array $row { // (5) Print out each element in $row, that is, print the values of // the attributes foreach ($row as $attribute) print "{$attribute} "; // Print a carriage return to neaten the output print "\n"; }
Comments
