Re: Re: php-db foreign key
| From: | Peter Lind | Date: | Tue, 09 Aug 2011 20:30:40 +0000 |
| Subject: | Re: Re: php-db foreign key | ||
| References: | 1 2 3 4 5 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47973@lists.php.net to get a copy of this message | ||
On 9 August 2011 22:25, Chris Stinemetz <chrisstinemetz@gmail.com> wrote:
>>
>> Your php code had more than one query running (one inside the other).
>> It's the outer query that runs twice, not the inner one returning
>> double the results
>>
>
>
> Thanks Peter,
>
> Do you have any suggestions on how to fix this?
>
> Thank you,
>
> Chris
>
Yes, debug your code and figure out why it's looping twice instead.
For instance, try the other query in the mysql console.
--
<hype>
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
</hype>