www.webdeveloper.com
Results 1 to 3 of 3

Thread: click to view result in that page itself

  1. #1
    Join Date
    Jul 2008
    Posts
    63

    click to view result in that page itself

    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

  2. #2
    Join Date
    Jul 2008
    Location
    California, US
    Posts
    74
    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.

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

  3. #3
    Join Date
    Apr 2007
    Posts
    1,664
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles