basic-php-03-select2-rev02.php / php
<?php //connect to MySQL //make sure we're using the right database mysql_select_db("moviesite"); query = "SELECT movie.movie_name, movietype.movietype_label " . "FROM movie, movietype " . "WHERE movie.movie_type = movietype.movietype_id " . "AND movie.movie_year>1990 " . "ORDER BY movie_type"; query) or die(mysql_error()); echo "<table border=\"1\">\n"; while (results)) { echo "<tr>\n"; foreach(value) { echo "<td>\n"; echo </td>\n"; } echo "</tr>\n"; } echo "</table>\n"; ?>
(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.