By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,664 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,664 IT Pros & Developers. It's quick & easy.

meaning of specified parts of this code

P: n/a
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.

May 7 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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/functio...etch-array.php

Tom
da*******@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.
May 7 '07 #2

P: n/a
klenwell wrote:
The -indicates that the variable in question is an object with
datums representing a property of the object.
And "datums" is an anglicised plural of "datum" which is a Latin word
meaning "something that has been given". The normal Latin plural of "datum"
is more familiar: "data".

Because of its Latin root, the pedantic will insist that the word "data"
in English ought to be treated as a plural. That is, not "The data shows
us that blah...", but rather "the data show us that blah...". Many
pragmatists however argue that "data" has become a (singular) collective
noun in English (much like "flock" or "bunch") and should take the
singular form.

--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux/Linguistics
May 8 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.