Date: 11/13/00
- Next message: William N. Zanatta: "[PHP-DB] LDAP_SEARCH()"
- Previous message: kenji chan: "[PHP-DB] Web-base Files upload"
- In reply to: kenji chan: "Re: [PHP-DB] anyone succeed?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>]
Sent: Monday, November 13, 2000 12:32 PM
To: php-db <email protected>
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 <email protected>> wrote in message news:8F4754C74deryk <email protected>
> 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 <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: William N. Zanatta: "[PHP-DB] LDAP_SEARCH()"
- Previous message: kenji chan: "[PHP-DB] Web-base Files upload"
- In reply to: kenji chan: "Re: [PHP-DB] anyone succeed?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

