note 26714 deleted from function.mysql-fetch-object by maxim
| From: | maxim@php.net | Date: | Sun, 10 Nov 2002 17:20:48 +0000 |
| Subject: | note 26714 deleted from function.mysql-fetch-object by maxim | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39263@lists.php.net to get a copy of this message | ||
You can solve the above problem in this way:
.
.
function get_from_db()
{
$res=query("select name, surname from ppl where... limit 1");
$row=mysql_fetch_row($res);
list($this->name,$this->surname)=$row;
}
.
.