Forum Moderators: coopster
when table1 is displayed, colour red the values from table2
$result = mysql_query($select) or die("Cannot execute query: " . mysql_error());
while ($row = mysql_fetch_array($result)) {
$out .= '
<tr><td><a href="details.php?id="' . $row['id'] .
'">' . $row['id'] . '</a></td><td>' . $row['af_id'] .
"</td><td $ubg>" . $row['user_id'] . '</td></tr>';
}
if ($out) { echo "<table>$out</table>"; }
else { echo "<p>No results</p>"; }
?>