Adding rows to an array in PHP

Posted by ChuckO on Stack Overflow See other posts from Stack Overflow or by ChuckO
Published on 2010-05-24T20:30:14Z Indexed on 2010/05/24 20:41 UTC
Read the original article Hit count: 253

Filed under:
|
|

I have loaded an associative array of records from a MySQL database table.

The array consists of 1 to 7 rows representing one week of entries, which might not have been entered for each day.

How can I insert blank rows into the array for the missing days so that I can easily display the data in a table?

I don't need to update the database with the blanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays