RE: [PHP] How to "smart refresh" php section using iframe?
| From: | Donald Tyler | Date: | Mon, 29 Sep 2003 12:52:29 +0000 |
| Subject: | RE: [PHP] How to "smart refresh" php section using iframe? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164229@lists.php.net to get a copy of this message | ||
This is not possible with PHP alone. You need to use some client side
code such as JavaScript or Flash.
I would recommend JavaScript. It would be pretty easy to accomplish what
you are talking about with that.
Grab yourself a copy of "JavaScript the Definitive Guide" by Orielly.
It's pretty comprehensive.
-----Original Message-----
From: ascll [mailto:ascll@yahoo.com]
Sent: Saturday, September 27, 2003 1:44 AM
To: php-general@lists.php.net
Subject: [PHP] How to "smart refresh" php section using iframe?
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.
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