Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Calendar app


Message #1 by "Adam Lang" <aalang@r...> on Thu, 24 Jan 2002 13:43:13 -0500
Heh, the original app I wrote was using a PostgreSQL backend, but when I
moved to a new webserver, I didn't feel like setting a database back up just
for the calendar app, hence rewriting it using text files.  Plus, it is
easier to just copy the files and dump them in a directory and just have it
work than worry about different DB types and user names, etc.

As for the if statement, you are right, a simple if statement can be used to
catch that scenario and I will fix it.

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com
----- Original Message -----
From: "David Cameron" <dcameron@i...>
To: "professional php" <pro_php@p...>
Sent: Monday, January 28, 2002 6:12 PM
Subject: [pro_php] Re: Calendar app


> That was stupid of me. Forget that last comment. I forgot that the
calendar
> app was using a text file backend. I keep forgetting that you can use
> something other that a relational DB as a backend. First comment still
> stands.
>
> regards
> David Cameron
> nOw.b2b
> dcameron@i...
>
> >  -----Original Message-----
> > From: David Cameron [mailto:dcameron@i...]
> > Sent: Tuesday, 29 January 2002 9:05 AM
> > To: professional php
> > Subject: [pro_php] Re: Calendar app
> >
> > > The reason modify will still work even if you don't select an event is
> > > because I only use two functions.  saveEvent and deleteEvent.  Modify
> calls
> > > deleteEvent and then saveEvent, so if you don't select something, it
> just
> > > doesn't delete anything.
> >
> > This is not exactly intuitive. I would have expected that nothing would
be
> added or changed. If you added in an if block that checks to see if a
> calendar event was selected, and to call saveEvent only if a record was
> selected.
> >
> > Also if you were planning to link this up to other information in the
> database, deleting then inserting new records as a method of modifying is
a
> bad option. If there was another table that links to the PK of this table,
> you would need to UPDATE that table. If you are not worried about
expansion
> this is not an issue.
> >
> > regards
> > David Cameron
> > nOw.b2b
> > dcameron@i...
> >
> > -----Original Message-----
> > From: Adam Lang [ <mailto:aalang@r...>]
> > Sent: Saturday, 26 January 2002 2:32 AM
> > To: professional php
> > Subject: [pro_php] Re: Calendar app
> >
> >
> > The reason modify will still work even if you don't select an event is
> > because I only use two functions.  saveEvent and deleteEvent.  Modify
> calls
> > deleteEvent and then saveEvent, so if you don't select something, it
just
> > doesn't delete anything.
> >
> > Adam Lang
> > Systems Engineer
> > Rutgers Casualty Insurance Company
> > <http://www.rutgersinsurance.com>
> > ----- Original Message -----
> > From: "David Cameron" <dcameron@i...>
> > To: "professional php" <pro_php@p...>
> > Sent: Thursday, January 24, 2002 8:40 PM
> > Subject: [pro_php] Re: Calendar app
> >
> >
> > > If I write something into the text box and click modify it adds it in
as
> a
> > > new record. I'm not sure if this is by design.
> > >
> > > Also it might be nice to have a little client & server side error
> handling
> > > to deal with people clicking delete and not selecting a record.
> > >
> > > regards
> > > David Cameron
> > > nOw.b2b
> > > dcameron@i...
> > >
> > > -----Original Message-----
> > > From: Jacob Cohen [ <mailto:cohen@r...>]
> > > Sent: Friday, 25 January 2002 11:19 AM
> > > To: professional php
> > > Subject: [pro_php] Re: Calendar app
> > >
> > >
> > > Not sure if this is your desired behavior or what, but the current day
> is
> > > highlighted in all months, not just the current month.
> > >
> > > -Jake.
> > >
> > > --------
> > > Jacob Cohen (cohen@r...)
> > > <http://www.rafb.net/>
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Roger Jacobs [ <mailto:raj@l...>]
> > > Sent: Thursday, January 24, 2002 4:49 PM
> > > To: professional php
> > > Subject: [pro_php] Re: Calendar app
> > >
> > >
> > > Here's my homegrown PHP/MySQL Calendar app:
> > >
> > > <http://omnisphere.com/demo/calendar/index.php>
> > >
> > >
> > > ---
> > > Change your mail options at <http://p2p.wrox.com/manager.asp> or
$subst('Email.Unsub').
>
> > >
> > >
> > > ---
> > > Change your mail options at <http://p2p.wrox.com/manager.asp> or
$subst('Email.Unsub').
>
> > >
> >
> >
> >
> >
> > ---
> > Change your mail options at <http://p2p.wrox.com/manager.asp> or
> >
>
>
>




  Return to Index