Having an error in a script that I cannot figure out why it's not working. The problem is on line 15 "while ($row = mysql_fetch_object" ($result)).
Movie Database<BR> <pre> <?php // Connect to MySQL server // User name is root and password is blank $link = mysql_connect('127.0.0.1','root','mmtnet'); // Select the database $db = mysql_select_db("movie_library", $link); // Query the database for all fields from table 'movies' $result = mysql_query("SELECT * FROM movies", $link); // Loop through all the rows while ($row = mysql_fetch_object($result)) { // print the object for each row print_r($row); } ?> </pre> </BODY> </HTML> Thanks -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]