Re: Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Lynch
On Wed, July 6, 2005 10:43 am, Richard Davey said: > Hello Marek, > > Wednesday, July 6, 2005, 3:15:58 PM, you wrote: > > MK> You can select just the id, and provided that the query returns just > MK> zero or one row, you can spare one function call. > > Sure that will work fine - but I fail to see

Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello Marek, Wednesday, July 6, 2005, 3:15:58 PM, you wrote: MK> You can select just the id, and provided that the query returns just MK> zero or one row, you can spare one function call. Sure that will work fine - but I fail to see how it will save a function call. You either select, check ther

Re[2]: [PHP] IBM's Learning PHP Part 1 tutorial.

2005-07-06 Thread Richard Davey
Hello André, Wednesday, July 6, 2005, 3:25:37 PM, you wrote: AM> Depending on the sittuation, IMHO, COUNT(*) wouldn't be the way to AM> go. If you need the user's id or somesuch, you have to run an AM> additional query to get the info. But they're returning absolutely nothing in this case - whic