how to create a vertical calendar in php -


how create calendar in php.. vertical, mean dates of month 1 after another.. 1 row contain 1 date of month.. there 4 column.one column contain date of month , other 3 columns 3 different rooms (each room show availability status-booked or not against specific date particular month..) trying not able create this.. help/suggestion/link appreciated..

thanks..

at first, need number of days current month

$num_days = date('t', mktime(0, 0, 0, $desired_month, 1, $desired_year)); 

for explanation see php manual: date

next step be, go through days , create 4 columns

    ($index = 1; $index <= $num_days; $index++) {     echo "<tr><td>" . $index . "." . $desired_month . "." . $desired_year . "</td>         <td>col2</td><td>col3</td><td>col4</td></tr>"; } 

this should serve need.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -