Click to See Complete Forum and Search --> : click to view result in that page itself


bharanikumarphp
07-27-2008, 01:24 PM
Hi php experts

I designed the calendar,in that calendar event dates only displayed with

Anchor , in that date holding the date like 09-08-2008 ,

When user click the date , that respective event details must be display,

any idea for this situation...

If the solution if ajax with php means am happy

Thanks advance:D

JeremyA
07-28-2008, 01:43 PM
well you could request it from your database if you dont mind it not looking like a sparse and having to refresh or go to a separate page.

$result = mysql_query("SELECT * FROM calendar WHERE date='$date'");
while($row = mysql_fetch_array($result))
{
echo '<option $row['event'];
}

SyCo
07-28-2008, 01:51 PM
Ajax would work just fine. Your calandar dates would have an id associated in either an onclick of href. The id is passed to an ajax function that displays the details.