?
Solved

unable to pick up multiple rows...

Posted on 2012-04-09
3
Medium Priority
?
241 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 800 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article discusses how to implement server side field validation and display customized error messages to the client.
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 …
Suggested Courses

764 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