Hello C++Casey,
With these round of exchanges of code, you must be now restless for getting the anaswer, isn't it?
Please find the following code ( though it may be simple one).
$query = "SELECT contact_id FROM member_d WHERE login_name like '";
$query = $query . $login_v;
$query = $query . "'";
$result = mysql_query($query) or die ("SELECT failed.");
$res = mysql_fetch_array($result);
$numrows=$res[0];
echo " <br>" ; echo "First time THE numrows has the value " ; echo $numrows ; echo "<br>" ;
if ($numrows > 100)
{
echo " contact ID is greater than ONE hundred" ; echo "<br>" ;
}
else
{
echo "contact ID is smaller than 100 " ; echo "<br>" ;
}
In the above case, $login_v contains the value given by the user. The query checks whether the entered login has ID value gretaer than 100 or not.
Hope this example is closer to your requirement. One more thing, display the field value you are referring in the IF statement.
Write echo $your_variable_name ;
before your IF condition.