I'm missing something here.
The code works if there is a result from the query. ie some users
status is equal to NULL.
But if the query is 0 the "if statement" doesn't click in.
<table width="200" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999">
<tr>
<td height="25" bgcolor="#000000">
<div align="center" class="green-18">
<strong>Members that need thier status set</strong>
</div>
</td>
<? include("../includes/db.php");
$NULL = mysql_query("SELECT * from users WHERE status = 'NULL' ");
if ($NULL >= 1) {
while ($r = mysql_fetch_array($NULL))
{ ?>
<tr>
<td align="left">
<a href="admin2.php?user=<? echo $r[username]; ?>" target="_self"class="link"><? echo $r[firstname]; ?> <? echo $r[lastname]; ?></a>
</td>
</tr>
<? }
} else { ?>
<tr>
<td>
<div align="center">
<strong>All caught up here :)</strong>
</div>
</td>
</tr>
</table>
<? } ?>
</table>
I may have this
if ($NULL >= 1)wrong too. I am only guessing
Any help would be great.
Thank you.
Hooch
