You are here: Re: meaning of specified parts of this code « PHP Programming Language « IT news, forums, messages
Re: meaning of specified parts of this code

Posted by klenwell on 05/07/07 21:06

The -> indicates that the variable in question is an object with
datums representing a property of the object. In this case, that
property will be an array, since that is what mysql_fetch_array (when
successful). See following pages for more info:

http://www.php.net/manual/en/language.oop.php
http://www.php.net/manual/en/function.mysql-fetch-array.php

Tom


davjoh123@yahoo.com wrote:
> if ($result) {
> $rs->datums = mysql_fetch_array ($result, MYSQL_ASSOC);
>
> What does -> do after the recordset variable $rs?
>
> Is datums a field name or something else?
>
> I have a text by Larry Ullman and have searched the web for these 2
> answers with no result.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация