Re: if (perplexed) {post to list}
| From: | John McKown | Date: | Fri, 08 Sep 2000 02:17:31 +0000 |
| Subject: | Re: if (perplexed) {post to list} | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2726@lists.php.net to get a copy of this message | ||
On Thu, 7 Sep 2000, Larry Linthicum wrote:
<snip>
> $links = mysql_query($get_urls,$db)or die("cant do main query");
>
> # $check= mysql_fetch_row($links);
> # if ($check<1) {
> # echo "<p>No entries in this area Please <a
<snip>
I think the line should be:
$check=mysql_num_rows($links);
This will tell you the number of rows returned by the SELECT. You are
getting the first row in your code.
John