Is there another way to determine what the query found? The input is a
string "whatever".
I'm looking for a return of a string or null or nuber of rows or
something that will permit to to channel the execution of the file.
The snippet below is good for (there is a match) and (there is no match)
but I get the feeling that there must be a quicker way to determine if
the $result is positive or negative. ??? :-\
while ( $row = mysql_fetch_array($result) ) {
echo("<P>" . $row["title"] . "</P>");
}
if ($row["title"] == "")
echo ("Empty!")
--
Phil Jourdan --- pj@stripped
http://www.ptahhotep.com
http://www.chiccantine.com
| Thread |
|---|
| • is there another way | PJ | 27 Feb |