table course[name,departament,year,id,examinar] for example:
music,music Science,first,1,pr.Elias
table grade[studentname,stlastname,departament,,course,yearOfcourse,grade,examinar] for example:
roland,doda,music Science,music,first,10,pr.Elias
Now i have the below code
$query = "SELECT * FROM course where year ='first' ";
$result = mysql_query($query);
while ($row = mysql_fetch_array($result) ){
echo "<tr>
<td>".$row['name']."</td>
<td>".$row['departament']."</td>
<td>".$row['examinar']."</td>
</tr>";
}
This works fine but that i want is into <tr>
tags of while loop to echo out the grade from table grade?