note 26714 added to function.mysql-fetch-object
| From: | flavio dot ventura at logika dot com | Date: | Sun, 10 Nov 2002 12:20:27 +0000 |
| Subject: | note 26714 added to function.mysql-fetch-object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39254@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;
}
.
.
--
http://www.php.net/manual/en/function.mysql-fetch-object.php
http://master.php.net/manage/user-notes.php?action=edit+26714
http://master.php.net/manage/user-notes.php?action=delete+26714
http://master.php.net/manage/user-notes.php?action=reject+26714