Array inside an array PHP SQL -
I have tried what I can think for the last two days. I'm really lost, I have to get this line of code to change based on my database. I have tried everything I found on php.net and many forums.
Any ideas or help will be highly recommended$ maid => array ('/ index.php? Day = $ maiday and year = $ myyear', 'linked days'),
$ SQL = "SELECT * FROM DATE_BOOK '"; $ Result = mysql_query ($ SQL); While ($ line = mysql_fetch_array ($ result)) {$ agenda_id = $ line ["agenda_id"]; $ MYyear = $ line ["agenda_eur"]; $ Maida = $ line ["agenda_diday"]; $ Agenda_memh = $ line ["agenda_moth"]; } $ Day = array ($ myday => array ('/ index.php? Day = $ my day and year = $ MYyear', 'linked days'), $ maide => array (' / index.php? Day = $ maiday and year = $ myyear ',' connected day ')); Echo gener_calendar (2009, 1, $ day, 3, '/ weblog / archive / 2004 / January');
You want to exclude your loop:
< Code> $ day = array ();
And it's inside your loop:
$ days [$ Myday] = array ('/ index.php? Day = $ Myday & amp; ; Year = $ MYyear ',' connected day ');
Your loop is not actually adding to your array, it only specifies a bunch of variables that are rewritten anyway.
Comments
Post a Comment