Re: mysql question
| From: | Nathan Nobbe | Date: | Sun, 10 Feb 2008 17:58:38 +0000 |
| Subject: | Re: mysql question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269043@lists.php.net to get a copy of this message | ||
On Feb 10, 2008 12:52 PM, Per Jessen <per@computer.org> wrote:
> nihilism machine wrote:
>
> > $ret = mysql_result($r, 0);
> > mysql_free_result($r);
> > if ($this->auto_slashes) return stripslashes($ret);
> > else return $ret;
> > }
> >
> >
> > what is $ret, an array?
>
> No, it's a mysql result object.
>
no, its the contents of the first cell in the first record of the
result set; from the doc on mysql_result(),
http://www.php.net/manual/en/function.mysql-result.php
which is what the function is using.
> > if so how can i access the individual rows in it?
>
this method does not return a result set to the caller.
-nathan