hi all.
<?
while ($line_category = mysql_fetch_array($result_category, MYSQL_ASSOC)) {
$dlocation = $line_category["location"];
$sql_map = "SELECT * FROM card_details WHERE location = $dlocation and map = Yes";
$result_map = mysql_query($sql_map,$connection);
if ($result_map = TRUE)
{
$picimg = '<img src="admin_images/picimg.gif" />';
}
else
{
$picimg = '<img src="admin_images/spacer.gif" width="10" height="10"/>';
}
?>
i want to loop through a table looking for a recorde. if it finds in then i want to show an image, if it dosent then dont show an image.
can anyone help please.
cheers aron.