Quote:
Originally Posted by durangod
And it also looks like i dont even have to worry about extra elements on the result other than [0] because from what i gather from the docs it defaults to [0] and thats all i need as i am not repeating this in a loop so it will always be just [0] result on this.
|
Yes - because your query is only retrieving a single value per row. If you were retrieving a second field from the table in the same query the it would be in [1].
Even if you were returning multiple rows the count would be in [0] for every row when processing inside the loop.