THe code I have got so far is as below
$dbQuery2="SELECT dvdref, AVG(rating) FROM ratings GROUP BY dvdref";
$result2 = mysql_query($dbQuery2,$db);
$rating = mysql_result($result2);
$dbQuery1="SELECT * FROM dvd order by title";
$result1 = mysql_query($dbQuery1,$db);
while($dbRow=mysql_fetch_array($result1))
{
$dvdref=$dbRow["dvdref"];
$dvdLink=$dbRow["dvdLink"];
$title=$dbRow["title"];
However this gives me the error message:
Warning: mysql_result() expects at least 2 parameters, 1 given in N:\home\scie\d07cn\COM570\loginCentre.php on line 119 which is assigning the value to the rating variable...