Current location: Hot Scripts Forums » Programming Languages » PHP » php refresh with ajax


php refresh with ajax

Reply
  #1 (permalink)  
Old 12-22-11, 07:24 AM
connector connector is offline
Newbie Coder
 
Join Date: Jul 2011
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
php refresh with ajax

hello,
in my php script i have 2 variables which get updated from mysql :
$time and $time_destination
in $time i store the current time and in $time_destination there is another time which is in future for example 3 mins forward!
now i want to have a "loading bar" picture until $time is not equal to $time_destination, when they are equal i will make a new query to another mysql field and get some text and show it to them and at the same time when $time is lower it will refresh using ajax.
so basically it will be refreshing until those 2 variables are not equal, when they are equal it does another query and outputs the result.
any reference or link to ajax examples which i can do this ?
thanks
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Ajax to retrieve and hold variables from PHP file - then pass to Javascript file for calculati spalton JavaScript 0 10-05-11 08:57 AM
how to use ajax with php? gnagis PHP 3 05-12-09 03:29 AM
php vs AJAX daabomb2002 PHP 1 04-23-07 09:36 PM
PHP - Automatic Page refresh rsuresh New Members & Introductions 1 05-20-04 03:31 PM


All times are GMT -5. The time now is 08:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.