Re: [PHP-DB] PHP Objects and SQL Results
[email protected] (Richard Quadling)
| Newsgroups | php.db |
|---|---|
| Message-ID | <[email protected]> |
On 12 February 2010 23:46, Paul Hollingworth <[email protected]> wrote: > Thanks for the code Eric, it seems to loosely provide the functionality that > I'm after. > > Just out of interest though, is there no other way to find the next result > row in an object apart from dumping it into an array? > > Thanks, > Paul You can use mysql_result() (http://docs.php.net/manual/en/function.mysql-result.php) to read a specific row from the result set. But you could also use the SQL WHERE or LIMIT clause to only retrieve the specific row or rows you wanted. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling