login  Naam:   Wachtwoord: 
Registreer je!
 Forum

kalender maken

Offline Valkyr - 16/08/2009 15:59 (laatste wijziging 16/08/2009 16:14)
Avatar van ValkyrNieuw lid Beste,

Ik wil een kaledner maken maar krijg het niet goed ge echo'd....
Ik gheb de juiste informatie maar weet niet hoe deze weer te geven nu... iemand die mij dit kan uitleggen? (in de loop)...


mijn code:

  1. <?php
  2. ?>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7. <title>Untitled Document</title>
  8. </head>
  9.  
  10. <body>
  11.  
  12. <table border="0px" cellpadding="2px" cellspacing="2px">
  13. <tr bgcolor="#CCCCCC" style="text-align:center; font-weight:bold; font-size:26px;">
  14. <td colspan="7">2009</td>
  15. </tr>
  16. <tr bgcolor="#CCCCCC" style="text-align:center; font-weight:bold; font-size:14px;">
  17. <td width="50px">Monday</td><td width="50px">Thuesday</td><td width="50px">Wednesday</td><td width="50px">Thursday</td><td width="50px">Friday</td><td width="50px">Saturday</td><td width="50px">Sunday</td>
  18. </tr>
  19.  
  20. <?php
  21. // asked year and month
  22. $year = 2009;
  23. $month = 8;
  24. $day = 16;
  25. $nr_days = cal_days_in_month(CAL_GREGORIAN, $month, $year);
  26.  
  27.  
  28.  
  29. for($i = 0; $i < $nr_days; $i++)
  30. {
  31. // informatie over de dag ophalen
  32. $requested_month = unixtojd(mktime(0, 0, 0, $month, $i, $year));
  33. #### print_r(cal_from_jd($requested_month, CAL_GREGORIAN)); ####
  34.  
  35. // weergeven
  36.  
  37. }
  38. ?>
  39. </table>
  40.  
  41. </body>
  42. </html>

1 antwoord

Gesponsorde links
Offline Yourgamecrew - 25/08/2009 17:15
Avatar van Yourgamecrew Lid Ik snap je vraag niet. Wat wil je nou hebben?  
Gesponsorde links
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.167s