basic-php-15-cbashop.php / php
<?php //connect to the database - either include a connection variable file //or type the following lines: query = "SELECT * FROM products"; query) or die(mysql_error()); ?> <html> <head> <title>Comic Book Appreciation Site Product List</title> </head> <body> <div align="center"> Thanks for visiting our site! Please see our list of awesome products below, and click on the link for more information: <br><br> <table width="300"> <?php // Show only Name, Price and Image while (results)) { extract(<tr><td align=\"center\">"; echo "<a href=\"getprod.php?prodid=" . products_prodnum . "\">"; echo "<em>THUMBNAIL<br>IMAGE</em></a></td>"; echo "<td>"; echo "<a href=\"getprod.php?prodid=" . products_name; echo "</td></a>"; echo "<td align=\"right\">"; echo "<a href=\"getprod.php?prodid=" . " . </a></td></tr>"; } ?> </table> </div> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.