On 9 August 2011 22:38, Chris Stinemetz <chrisstinemetz@xxxxxxxxx> wrote: >> >> Yes, debug your code and figure out why it's looping twice instead. >> For instance, try the other query in the mysql console. >> > > Thank you! It was the first query. I put a LIMIT 1 on it and now it is > working correctly. I appreciate your help! > You're fixing the symptom, not the problem. Your query was returning multiple values because something is wrong with the query or your data. If you don't correct it, the problem will likely just grow bigger. -- <hype> WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 </hype> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php