RE: [PHP-DB] anyone succeed?
| From: | Chris Sano | Date: | Mon, 13 Nov 2000 17:34:30 +0000 |
| Subject: | RE: [PHP-DB] anyone succeed? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4398@lists.php.net to get a copy of this message | ||
Try this:
<?php
if ($link = mysql_connect("host", "user", "pass")){
session_start();
session_register(nameOfSession);
$nameOfSession[link] = $link;
}
?>
Hope this helps,
_______________________________
chris·sano
web developer/programer
choice one online
http://www.choiceoneonline.com
-----Original Message-----
From: kenji chan [mailto:kenjikenji@bigpond.com]
Sent: Monday, November 13, 2000 12:32 PM
To: php-db@lists.php.net
Subject: Re: [PHP-DB] anyone succeed?
I think the code have a problem, but I never try that:
Correct:
<?
$link=mysql_connect("host","user","pass");
session_start();
session_register("link");
?>
***********
deryk <deryk@163.net> wrote in message news:8F4754C74deryk@198.186.203.51...
> as following:
> <? $link=mysql_connect("host","user","pass");
> session_register("link");?>
> i want to transfer this link var to another page via session function
> my session works well,i've tried on other vars and the $link i get is
> ok too,but just i can't transfer it correctly to another page,i also
> tried mysql_pconnect(),it's the same ,anyone ever did the same thing
> and succeeded?
> thx
> deryk
>
>
>
>
> --
> 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
>
--
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