Re: Display just 1 record in a query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Daevid Vincent wrote on 13/01/2010 00:00:

Holy, Jesus, Marry and Joseph! You can't be serious with that?!
So you're going to loop over potentially hundreds or thousands of records
and only display one?
Wow. Speechless.

Either you're talking to dealtek or you didn't read my post very well:

"Another approach could be to add " LIMIT 1" to the end of your SQL statement"

I just pointed out different approaches and answered his questions. Of course I would use last or break on the count == 2 approach, not running through _any_ records after getting what I wanted. I don't really get the "like just the 2nd record only", but again, from the material we've seen it's hard to give the right advice

--
Kind regards
Kim Emax - masterminds.dk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux