Fetch Mysql Data while Loading

Discussion in 'PHP' started by mehdi, Oct 3, 2008.

  1. #1
    Hello, can someone please give me example for this... While fetching data from mysql, php will print text "Loading..." and when data is fetched it automatically changes into that data. I know its only possible by AJAX, or else anyone have someother idea?

    Thanks
     
    mehdi, Oct 3, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Only AJAX, so starting by replacing div content with Loading and after receiving data replace same div with content.
     
    EricBruggema, Oct 3, 2008 IP
  3. mehdi

    mehdi Peon

    Messages:
    258
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can u give me example of it?
     
    mehdi, Oct 3, 2008 IP
  4. Sillysoft

    Sillysoft Active Member

    Messages:
    177
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Sillysoft, Oct 3, 2008 IP