From the PHP manual:
<I>"mysql_query() returns TRUE (non-zero) or FALSE to indicate whether or not the query succeeded. A return value of TRUE means that the query was legal and could be executed by the server. It does not indicate anything about the number of rows affected or returned. It is perfectly possible for a query to succeed but affect no rows or return no rows."</I>
This means that you can not check </b>$result<b> as an indicator of how many rows your query retrieved.
Do this instead:
db = mysql_connect("localhost");
mysql_select_db("saintparis", $db);
$sql = "select * from general where paying='Yes' && paying1='No'";
$result = mysql_query($sql);
if (!$result){
print("Bad SQL or Authorization Problem");
}
else {
if (mysql_num_rows($result) < 1) {
print("Sorry there are no new clients");
}
else {
// process result set
}
}
HTH
-- Rich Rijnders
-- Irvine CA US