$i = 0; (Most popular web site) $review_details = ; while ($i
$i = 0; $review_details = ; while ($i
EOD; $i++; } 5. Make the changes as shown here. Go slowly, and ensure that you make all the changes correctly.
EOD; if ($review_flag) { $movie_details .=<<
EOD; } 6. Save the file as movie_details.php (overwriting the existing one we hope you have made a backup copy as suggested). 7. Upload to your Web server, load table3.php, and click a movie. You ll see something similar to Figure 4-7. How It Works The generate_ratings function is fairly straightforward. You send it the value that is in the ratings field for a movie and it creates a rating image for that movie and returns it. Notice that you are using .= (which is similar to .=<<<). This ensures that movies with a rating of more than 1 will get additional images added to the single rating image. The $review_table_headings variable contains the table headings for the reviews that you have just pulled out via the previous SQL query. This uses exactly the same concept as the movie table headings in the previous example. So now you have all the review table headings in a nice, neat variable. 132 Chapter 4
Note: In case you are looking for affordable webhost to host and run your web application check Vision http web server services