Solved

unable to pick up multiple rows...

Posted on 2012-04-09
3
237 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 110

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

756 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