/ Published in: PHP
Expand |
Embed | Plain Text
// (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
Subscribe to comments
You need to login to post a comment.

From "Web Database Application with PHP and MySQL," (2nd Edition) by David Lane, Hugh E. Williams