[PHP] Next page every second

2004-12-23 Thread Greg Wardawy
Ladies and gentlemen of PHP,
I'm quite new to PHP (coming from Perl) so please don't laugh too hard if 
I'm missing something obvious.
My scenario is as follows:
Connect to the MySQL server->grab the data from the table->display the data 
of the first row on the web page->sleep 1 second->display the data from the 
next row->sleep 1 second... and so forth up to the last row of the table.
I'm able to get the next page displayed by using a link to it (a snippet 
below) but I'm out of ideas how to have the next page displayed every 
second. So far I'm getting tons of tables displayed on the page or tons of 
the variables displayed in a single cell of the table. I could really use 
your help here.
Happy Holidays to all of you and many thanks for any suggestions given.

Greg.
#
__SNIP__

 
   Variable
   Value
 
 
 
   1
   
 
   2
   
 
 
   3
   
 
 
   4
   
 
 


">Next

__SNIP__
# 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Next page every second

2004-12-24 Thread Greg Wardawy
Thanks a lot Sagar,
The logic looks perfect. Having no web programming experience at all I 
didn't even know what I was looking for.
And I didn't know I needed a java script for the PHP page.

Greg.
- Original Message - 
From: "Sagar C Nannapaneni" <[EMAIL PROTECTED]>
To: "Greg Wardawy" <[EMAIL PROTECTED]>; 
Sent: Thursday, December 23, 2004 1:25 PM
Subject: Re: [PHP] Next page every second


If all you want to display each record one by one at a particular interval
of time
you could do this at one page itself...here is the procedure
1. connect to mysql
2. grab the row you want
3. store the row number in a session variable
4. Add an autorefresh code to ur html..(lot of java scritps are there for
setting the time interval for the page refresh)
5.  when the page again loads grab the row number from session and 
increment
it by one

hope that the logic will work out...
/sagar
- Original Message -
From: "Greg Wardawy" <[EMAIL PROTECTED]>
To: 
Sent: Friday, December 24, 2004 10:39 AM
Subject: [PHP] Next page every second

Ladies and gentlemen of PHP,
I'm quite new to PHP (coming from Perl) so please don't laugh too hard if
I'm missing something obvious.
My scenario is as follows:
Connect to the MySQL server->grab the data from the table->display the
data
of the first row on the web page->sleep 1 second->display the data from
the
next row->sleep 1 second... and so forth up to the last row of the table.
I'm able to get the next page displayed by using a link to it (a snippet
below) but I'm out of ideas how to have the next page displayed every
second. So far I'm getting tons of tables displayed on the page or tons 
of
the variables displayed in a single cell of the table. I could really use
your help here.
Happy Holidays to all of you and many thanks for any suggestions given.

Greg.

#
__SNIP__

  
Variable
Value
  
  
  
1

  
2

  
  
3

  
  
4

  
  


$queryString_gail_data);
?>">Next

__SNIP__

#
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [PHP-DB] Table Info

2004-12-24 Thread Greg Wardawy
Hi Brad,
That's what I'm trying to achieve (my post "Next page every second"). Maybe 
Sagar's response will help you a bit.

Greg
"Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
I am having problems coming up with a way to do this. I highly appreciate
any help what so ever.
Problem: I  need to extract data from the database, and display it on a
table with 2 columns. It has to alternate columns automaticly, for each 
row.

Like I said earlier, any help is highly appreciated!!
Thanks in advance,
Brad Ciszewski
www.BradTechnologies.com Web Services
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php