Re: PHP Objects and SQL Results
| From: | Richard Quadling | Date: | Sat, 13 Feb 2010 20:54:30 +0000 |
| Subject: | Re: PHP Objects and SQL Results | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46884@lists.php.net to get a copy of this message | ||
On 12 February 2010 23:46, Paul Hollingworth <devineman@msn.com> 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