Page 2 of 2

Re: possible evolution

PostPosted: Sun Feb 24, 2008 10:40 pm
by chris
try this, create a completley new file called (eg) temp.php
and put this code in it:
Code: Select all
<?php
//   connect to db
require_once("db_connect.inc.php");

// add column
$alter="ALTER TABLE `bookings_cal` ADD `state` CHAR( 3 ) NOT NULL DEFAULT 'all'";
if(!mysql_query($alter)) die("ERROR ADDING TABLE COLUMN");
else echo "<b>state</b> column added to calendar table - DON'T FORGET TO REMOVE THIS CODE NOW!";

?>

call this url up in your browser and it "should" work. Once you have done this you can delete the file.

Chris

Re: possible evolution

PostPosted: Mon Feb 25, 2008 12:43 am
by corsanero
Great!
When I have the time to renew my site, i will use your good calendar with a link to your website.
thanks :D

Re: possible evolution

PostPosted: Fri Feb 29, 2008 1:30 pm
by rcph
wow... very wonderful script :idea: thanks ;)

Petr

Re: possible evolution

PostPosted: Fri Feb 29, 2008 3:42 pm
by chris
Thanks, it's good to know that the work is appreciated ;)

Chris