Jump to content

Sessions Help


hansman

Recommended Posts

Hello, I am brand new to this sessions thing. I want to have a session so i can carry the database table name across severl pages to run a sql query. I have my pull donw menu that will select what database to select with the variable is "id".

 

On the first page after the for i have this

 

<?php
session_start(); // start up your PHP session! 
$_SESSION['id'] = $_POST['id'];
?>

 

is this correct? and how will i use the session on other pages?

Link to comment
https://forums.phpfreaks.com/topic/113956-sessions-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.