PHP Classes

File: fetchAllTest.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   HB PHP Events Calendar   fetchAllTest.php   Download  
File: fetchAllTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: HB PHP Events Calendar
Display HTML calendars with events from a database
Author: By
Last change:
Date: 8 years ago
Size: 391 bytes
 

Contents

Class file image Download
<?php

include 'src/calendarHTML.php';
include
'src/eventCalendar.php';
include
'src/eventsDBGateway.php';


$config = ['dbname'=>'event_calendar', 'dbhost' => 'localhost', 'dbuser' => 'root', 'dbpass' => '', 'dbtable' => 'events', 'assetsPath' => 'assets/', 'defaultDate' => date("Y-m-d")];

$events = new HBEventsCalendar\eventCalendar($config);

echo(
$events->getCalendar('all', null));