never mind...gheez my head is holidazed :)
$Schedule = array();
while ($row = mysql_fetch_object($result_query))
{
$look = "$row->year" . "$row->month" . "$row->day";
$title = $row->title;
$Schedule[$look] =$title;
}
Happy New Year!!
-ccma
----- Original Message -----
From: "Chris Allen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 4:27 PM
Subject: [PHP] Dynamic Array Q
> Hey!
>
> Looking for a way to add an entry in my array ...the way I have it the
array
> is getting rebuilt everytime...
> Anyway to add an entry without calling a function to do it inside the main
> while loop??
>
> while ($row = mysql_fetch_object($result_query))
> {
> $look = "$row->year" . "$row->month" . "$row->day";
> $title = $row->title;
>
>
> $Schedule = array(
> $look => "$title",
> );
>
> }
>
>
> thanks,
>
> ccma
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]