This bit goes on the page which you are accessing the database
PHP Code:
<?php
session_start();
$variable = "hello";
$_SESSION["price"] = $variable;
?>
If you want to have more than one piece of information, you do this
PHP Code:
<?php
session_start();
$variable = "hello";
$variable2 = "hello2";
$_SESSION["price"] = $variable;
$_SESSION["price2"] = $variable2;
?>
This should go at the top of the page.
PHP Code:
session_start();
This has to go after you retrieve the value from the database that your trying to use. $variable (or what ever you want to call it) has to be the value you are trying to transfer over to another page
PHP Code:
$variable = "hello";
$variable2 = "hello2";
$_SESSION["price"] = $variable;
$_SESSION["price2"] = $variable2;
Note:You can call the variables anything you want.
Bookmarks