Re: Maintains a persistent connection
| From: | ascll | Date: | Thu, 25 Sep 2003 04:08:53 +0000 |
| Subject: | Re: Maintains a persistent connection | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163848@lists.php.net to get a copy of this message | ||
First of all, thank you for your reply.
I have tried to use 'mysql_pconnect()' to connect to my database, but what I
want to achieve are these:
1) Value for "Field_A" is "Value_A" and value for "Field_B" is
"Value_B",
by default
2) I load my "getData.php" page and get the values ("Valua_A, Valua_B")
3) Then, I manually edit the value for "Field_A" to "new_Valua_A" and
Field_B to "new_Value_B".
4) The page that I loaded in step 2 still keep the old values ("Valua_A,
Valua_B")
Question:
=========
Could my .php page ALWAYS get the latest values WITHOUT reload the page?
Thanks.
"Chris Shiflett" <shiflett@php.net> wrote in message
news:20030925021323.40141.qmail@web14302.mail.yahoo.com...
> --- ascll <ascll@yahoo.com> wrote:
> > Could I use the PHP to maintain a persistent connection with MySQL
> > database?
>
> Yes:
>
> www.php.net/mysql_pconnect
>
> > My persistent connection here should work in this way: -
> >
> > 1) Using the .php file the retrieve data from Table_A that contain
> > 2 fields 'Field_A' and 'Field_B', with the value 'Value_A'
> > and
> > 'Value_B' respectively 2) Once the value for 'Field_A' and
> > 'Field_B'
> > changed to 'Value_C' and 'Value_D', my .php page should be changed
> > accordingly, in real time.
>
> That makes no sense to me.