On Saturday 27 September 2003 02:43 am, ascll wrote:
> Greetings,
>
> I'm newbie in php and I would like to develop a .php
> page that constantly retrieves data from MySQL
> database, but I having difficulties to doing so.
> Please show me the complete code, if possible.

This has nothing to do with PHP. Refreshing is handled 
by the client's browser, based solely on the HTML and 
Javascript your server sends it.

I believe refreshing can be done in either of two ways, 
using either HTML headers or Javascript, either of 
which is contained in the page that is to be 
refreshed. (You could probably also use Javascript in 
the containing page to refresh the iframe, but Keep It 
Simple Sammy, they say.)

Hope this helps. (If you need more, get out your HTML 
reference book or post your question an an HTML or 
Javascript list.)

Good luck!

--John

>
>
> Thanks in advance.
>
> ===== index.php =====
> <html>
> <body>
> <table>
>
> <!--
> // SECTION A
> // =========
> // Load one only, no need to refresh
> -->
> <tr>
>   <td>Column1</td>
>   <td>Column2</td>
>   <td>Column3</td>
>   <td>Column4</td>
>   <td>Column5</td>
> </tr>
>
>
> <!--
> // SECTION B
> // =========
> // Using .php to retrieve data from MySQL database
> (no problem) // together with "iframe" (I don't know
> how to configure <iframe>) // and also use
> "javascript" to auto refresh this section every
> 1-second (SECTION B ONLY)
> // since the data show on section B would keep on
> changing (I don't know the codes)
> -->
> <tr>
>   <td> . $Column1 . </td>
>   <td> . $Column2 . </td>
>   <td> . $Column3 . </td>
>   <td> . $Column4 . </td>
>   <td> . $Column5 . </td>
> </tr>
>
>
> <!--
> // SECTION C
> // =========
> // Auto refresh this section every 30-second
> (SECTION C ONLY and I don't know the codes)
> -->
> <tr>
>   <td> . $Column1 . </td>
>   <td> . $Column2 . </td>
>   <td> . $Column3 . </td>
>   <td> . $Column4 . </td>
>   <td> . $Column5 . </td>
> </tr>
>
>
> <!--
> // SECTION D
> // =========
> // Load one only, no need to refresh
> -->
> <tr>
>   <td>End of Record</td>
> </tr>
>
>
> </table>
> </body>
> </html>
> ===== index.php =====

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

Reply via email to