Solved

unable to pick up multiple rows...

Posted on 2012-04-09
3
233 Views
Last Modified: 2012-04-09
Hi, I have an application that populates an events calendar. For the most part  the application works as per my requirement. The only place where I am finding an issue is when I try to pick up multiple events on the same day. for eg, on April 10th I have scheduled two events but when I view my calendar only the last event is shown. Can someone let me know what I am doing wrong here. I have attached a part of my code that is used to pick up the events from the db. Thanks for the help.

A
events.php
0
Comment
Question by:aej1973
  • 2
3 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 200 total points
ID: 37824240
It looks like maybe the code is using the event date as an array key?  Not sure, but if you do it that way, you can only have one event per day.  You might want to substitute the auto_increment kdy from the data base. It will always be unique.
0
 

Author Comment

by:aej1973
ID: 37824292
How do I do this Ray? The auto increment key in the db is visit_id.
0
 

Author Closing Comment

by:aej1973
ID: 37825814
Thanks for pointing me in the right direction.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now