Public paste
Undefined
By: Guest | Date: Dec 6 2009 15:35 | Format: PHP | Expires: never | Size: 517 B | Hits: 682

  1. <?php
  2. $roosterQuery   = mysql_query("SELECT `month`, `day`, `hour`, `availability` FROM `rooster` WHERE `month` = '12' AND `availability` = '1'");
  3.  
  4. while ($data = mysql_fetch_assoc($roosterQuery)) {
  5.         $month  = $data["month"];
  6.         $day    = $data["day"];
  7.         $hour   = $data["hour"];
  8.         $avail  = $data["availability"];
  9.        
  10.         $array = array("data" => array ($month, $day, $hour, $avail));
  11.  
  12. /*
  13. This is creating several arrays with the data in it.
  14. I want to have 1 array with all the data in it, how can I do that?
  15. */
  16.  
  17. }
  18. ?>
Latest pastes
18 hours ago
18 hours ago
1 days ago
1 days ago
2 days ago