Forum Moderators: coopster

Message Too Old, No Replies

PHP and the DBX extention

seems a bit limited

         

dingman

8:08 pm on Jun 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, people around here seem terminally incapable of selecting a database to use for one of my projects, so I'm trying to use the DBX extention rather than database-specific functions to write it. However, unless I'm missing something, DBX doesn't seem to have any way of letting you know how many rows would have been returned if you hadn't used a 'limit' clause. Anyone know a way around that? is it burried somewhere in the bowels of that huge, complicated array you get as a query result, and I missed it?

jatar_k

3:37 pm on Jun 4, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



looks like you're not getting any love dingman.

I looked around at documentation and it would seem that you may just have to write a function yourself.
Did you find out anything else?

dingman

3:55 pm on Jun 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Not so far. var_dump() is your friend for this sort of thing, though. I'll just have to start making queries and see what the result looks like. It may well be burried in there somewhere. If not, there's always 'SELECT COUNT($same_stuff) where ($same_conditions)' without a LIMIT clause.