PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > Calendar event query
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Calendar event query

Réponse
 
LinkBack Outils de la discussion
Vieux 30/08/2007, 09h57   #1 (permalink)
abhishek jain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Calendar event query

Hi friends,
I need to make a calendar with some events.
I have created an events table with the parameters like:
eventid
event_from
event_till
recurring
recurring_after_day
event_type
userid

and so on.
My problem is to prepare a query which can give me events on a particular
day or rather all days(in case of calendar view is daily) ,months(if view is
monthly) and so on for year week including for events which are repeated
also, so that i can show that on my calendar.The query will run on a fairly
large no of users also so it should be efficient.

I think the catch is about the recurring events. As for them the entry will
be in one row and they will have virtually many rows one for each recurring
event.

So i want somthing like this for a particular userid :
event_on count(*) event_type
23 5 7
23 7 8
24 6 6
25 4 6
26 10 6
27 15
......

Pl. me
Thanks,
Abhishek jain

  Réponse avec citation
Vieux 31/08/2007, 11h46   #2 (permalink)
abhishek jain
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Fwd: Calendar event query

On 8/30/07, C.R.Vegelin <cr.vegelin@hetnet.nl> wrote:
>
> Hi Abhishek,
>
> Maybe it's off topic, but do you know:
> http://dev.mysql.com/downloads/other/eventum/
> a ready-to-use issue tracking system ...
> maybe also suitable for your purposes.
>
> Regards, Cor
>
> ----- Original Message -----
> From: "abhishek jain" <mail@ejain.com>
> Subject: Calendar event query
>
>
> > Hi friends,
> > I need to make a calendar with some events.
> > I have created an events table with the parameters like:
> > eventid
> > event_from
> > event_till
> > recurring
> > recurring_after_day
> > event_type
> > userid
> >
> > and so on.
> > My problem is to prepare a query which can give me events on a

> particular
> > day or rather all days(in case of calendar view is daily) ,months(if

> view
> > is
> > monthly) and so on for year week including for events which are repeated

>
> > also, so that i can show that on my calendar.The query will run on a
> > fairly
> > large no of users also so it should be efficient.
> >
> > I think the catch is about the recurring events. As for them the entry
> > will
> > be in one row and they will have virtually many rows one for each
> > recurring
> > event.
> >
> > So i want somthing like this for a particular userid :
> > event_on count(*) event_type
> > 23 5 7
> > 23 7 8
> > 24 6 6
> > 25 4 6
> > 26 10 6
> > 27 15
> > .....
> >
> > Pl. me
> > Thanks,
> > Abhishek jain
> >

>
>
>

Hi ,
eventum will not solve my purpose.
Pl. reply the calendar script is urgent and i need a query to actually give
me all events within a time period including the recurring events,
Thanks,
Abhishek jain

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h52.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07998 seconds with 10 queries