Re: Query
| From: | Ron Piggott | Date: | Thu, 01 May 2008 03:39:34 +0000 |
| Subject: | Re: Query | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-44942@lists.php.net to get a copy of this message | ||
You just drew my attention my <include that brings in the site menu and
was changing the conflict. Thanks :) Ron
On Thu, 2008-05-01 at 13:19 +1000, Chris wrote:
> Ron Piggott wrote:
> > I have an interesting question.
> >
> > When I run the following query through my PHP script it produces 1
> > result. I know this because I echo the value of $num to the screen from
> > the following syntax: $num=mysql_numrows($result);
> >
> > When I do the query in the "SQL" tab of phpMyAdmin there are 6 results.
> > The 6 requests are correct.
> >
> > Any ideas why I have 2 different search results?
>
> Show us the php code.. maybe you're overwriting the $result variable in
> your loop.
>