Solved

unable to pick up multiple rows...

Posted on 2012-04-09
3
235 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 109

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
applying error reporting code to see paypal error messages 13 61
Remove Black Diamond with Question Mark from Wordpress Custom Meta 6 60
PHP AJAX JSON 2 61
comma true 6 34
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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 …

831 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