Re: how can i use a link as a session var

From: Date: Mon, 30 Oct 2000 11:35:31 +0000
Subject: Re: how can i use a link as a session var
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4056@lists.php.net to get a copy of this message
deryk wrote: > > can anyone help me: > in the following > <? $link=mysql_connect("localhost","user","password"); > ?> > i want to use $link as a session var to transfer to another > page,but it does't work,I don't know what happened or what > to do,I need help. > thx > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net It would be much more efficient to use $link=mysql_pconnect..... where the 'p' stands for persistent connection. this means that the $link will remain in effect until you close the browser and if you call it again, it will simply verify that the link is there or creat a new one. Saves a lot of time.

« previous php.db (#4056) next »