oops, Sorry: I meant to post this to the PHP group.

On Jan 26, 2007, at 2:06 PM, phphelp -- kbk wrote:

Hello, folks -- lurking for a while, first post --

I'm relatively new to PHP but doing database design work for nearly 20 years.

I've RTFM'ed (+ books + other resources) a bunch of times but I have a mental block around doing this:

I want to have an multidimensional array as a property of an object.

Example:

MySQL SQL Resource:
 WHAM_ID  NAME     AMOUNT
  5       Fred         99
  9       Albert      345
 23       Mary          5
 (etc...)

Inside the function which builds the instance of the object, I have language like:

while ($line = mysql_fetch_array($result_set,MYSQL_ASSOC))
{
$this->foom_array = array("MyKey".$line["wham_id"]=>array ($line).",";
}
This isn't even close. <g>

Any examples, or a well-written resource to help me do this?

TIA

Ken

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql? [EMAIL PROTECTED]



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to