note 11262 added to mysql_fetch_object
| From: | anonymous at php2 dot chek dot com | Date: | Tue, 13 Feb 2001 11:45:50 +0000 |
| Subject: | note 11262 added to mysql_fetch_object | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10988@lists.php.net to get a copy of this message | ||
If your query aplies some (pre/user)defined function on table fileds you must place name on them.
-------------------------
e.g:
create table test (
atrib1 date,
.......
);
select date_format(atrib1, '%m/%d/%Y') from test
-------------
wont work but
-------------
select date_format(atrib1, '%m/%d/%Y') as Stuff from test
-------------
works just fine for field Stuff
http://www.php.net/manual/en/function.mysql-fetch-object.php