PHP Classes

File: caltest.php

Recommend this page to a friend!
  Classes of Harish Chauhan   Calendar Events   caltest.php   Download  
File: caltest.php
Role: Example script
Content type: text/plain
Description: example
Class: Calendar Events
Display and manage database stored calendar events
Author: By
Last change:
Date: 19 years ago
Size: 776 bytes
 

Contents

Class file image Download
<?php
   
   
//You can use mysql and sqlite database. For it is easy to use database wrapper classes
    //Please get IT FROM http://www.phpclasses.org/browse/package/2021.html
    //And uncommnet the db statements from the CALEVENT class

   
include("calevents.inc.php");

   
$host="host";
   
$user='user';
   
$password="pwd";
   
$database='database';

   
$cal=new CALEVENTS();
   
$cal->setInfo($host,$user,$password,$database);
   
// OR $cal=new CALEVENTS($host,$user,$password,$database);
   
    //Add event
    //$event="This is fourth event";
    //$cal->addEvent($event,'2005-04-27');

    //Update event
    //$event="This is updated fourth event";
    //$cal->updateEvent(10,$event);

    //Delete Event
    //$cal->delEvent(1);
    // OR $cal->delEvent("1,4,6");

   
$cal->drawCalendar();

?>