given the following code:
<?php
include "connect.php";
$query = "select d.Name,d.Image,d.Main_Style,g.ID,g.Name from dj d inner join genres g on g.ID=d.Main_Style order by d.Name";
$exec = $mysql->query($query) or die("Erreur");
$n = $exec->num_rows;
if($n > 0)
{
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<html><table>';
for($i=0;$i<$n;$i++)
{
$row = $exec->fetch_array();
//echo '<tr><td></td><td><a href='DJ.php?id=$row[ID]'>$row[Name]</a></td><td>$row[Main_Style]</td></tr>';
echo "<tr><td><img src=\"$row[d.Image]\" width=\"100\" height=\"100\"/></td><td><a href='DJ.php?id=$row[ID]'>$row[Name]</a></td><td>$row[Main_Style]</td></tr>";
}
echo '</table></html>';
}
include "disconnect.php";
?>
as you can see i used inside the php code $row[d.image] to display the content of image in the table d , however there is an error , how to solve this ? >$row[Name] and the other variables are working just fine