Re: [PHP] Problem with if statement and while loops

2002-05-26 Thread Jason Wong
On Saturday 25 May 2002 04:26, Miguel Cruz wrote: > On Sat, 25 May 2002, Jason Wong wrote: > > Your biggest problem is that you're trying to nest mysql_query() but > > you're only using 1 link identifier. You need to establish another > > connection using another mysql_connect(). > > The same link

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Miguel Cruz
On Sat, 25 May 2002, Jason Wong wrote: > Your biggest problem is that you're trying to nest mysql_query() but you're > only using 1 link identifier. You need to establish another connection using > another mysql_connect(). The same link identifier can be used simultaneously for any number of q

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
At 12:29 PM 5/24/2002 -0500, Steve Buehler wrote: >I am having trouble with the following function. What it should do is to >check one table for team_id's. Than it goes to another table and gets all >rows with that team_id. If the team_id is in the new table, it should do >one thing, else it

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
At 01:54 AM 5/25/2002 +0800, Jason Wong wrote: >Your biggest problem is that you're trying to nest mysql_query() but you're >only using 1 link identifier. You need to establish another connection using >another mysql_connect(). Why? I can nest 1000's of these as long as I don't use $result= for

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Jason Wong
On Saturday 25 May 2002 01:29, Steve Buehler wrote: > I am having trouble with the following function. What it should do is to > check one table for team_id's. Than it goes to another table and gets all > rows with that team_id. If the team_id is in the new table, it should do > one thing, else

[PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
I am having trouble with the following function. What it should do is to check one table for team_id's. Than it goes to another table and gets all rows with that team_id. If the team_id is in the new table, it should do one thing, else it should do something else. Can somebody look at this