I think i might have asked this question already but cant find the answer
ok what i want to know is how can i do an if statement on a part of an array and if its tru then do this and if not do that. This is what i have come up with.
while ($row = mysql_fetch_assoc ($sql_result4)) {
$id = $row[CabID];
$level = $row[S_level];
{
if ($row[S_level] == 3) {
print "<tr bgcolour=red><td>$name</td>";
print "<td width=105px>$phoneno</td><td width=160px><a href='$site' target='blank'>$site</a></td>";
}
else {
print "<tr><td>$name</td>";
print "<td width=105px>$phoneno</td><td width=160px><a href='$site' target='blank'>$site</a></td>";
}
}
any suggestions as always will be much appreciated