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.

$ maid => array ('/ index.php? Day = $ maiday and year = $ myyear', 'linked days'),

Any ideas or help will be highly recommended

  $ 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

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

kernel - How to create a "Block device" in Windows -