Hi Chris,
I see what you mean. No not hard coded, I just used Moulin Rouge as an example. Try using 3 tables. This way you can put 1 product under many categories.
Table 1. Categories: with a row corresponding to each letter in the alphabet
Table 2. Products: your actual movie products
Table 3. Assignment: which products fall under which category.
When your tables are set up, you need a little bit of code to pull the results back, something like this:
<?php
$query = mysql_query("SELECT p.id,p.title FROM products p JOIN assignment a, categories c WHERE p.id = a.pid AND c.id = a.cid AND c.id = '$cid'"); // $cid is the id called from the alphabetic link
$moviematches = mysql_num_rows($query);
if($moviematches > 0){
while($movie = mysql_fetch_array($query)){
printf("<a href=\"detailspage.php?id=%s\">%s</a>\n", $movie['id'],$movie['title']);
}
} else {
echo "Sorry there were no movies found under this category";
}
?>
Hope you're not confused. This is the way most shops work. An example of my own shop is at "http://www.facilis.co.uk/";
Hope this helps,
Jason