Dear All,
how to put connect object to session variable like that:
start_session() ;
$_SESSION['conn']=mysql_connect( 'localhost',$ui d,$pass);
mysql_select_db ('account',$_SE SSION['conn']);
the $_SESSION['conn'] variable cannot use in "main.php" my html:
<form action='main.ph p' method='post'>
<input type=submit>
</form>
how to pass $_SESSION['conn'] object to other script after submit action?
thank you
how to put connect object to session variable like that:
start_session() ;
$_SESSION['conn']=mysql_connect( 'localhost',$ui d,$pass);
mysql_select_db ('account',$_SE SSION['conn']);
the $_SESSION['conn'] variable cannot use in "main.php" my html:
<form action='main.ph p' method='post'>
<input type=submit>
</form>
how to pass $_SESSION['conn'] object to other script after submit action?
thank you
Comment