phpsessid

Permalink
I created a really basic form and i am trying to get the phpsessid to update the db with the uid (found in the db). I have been trying to use the $_session['phpsessid'] but i am not able to get this to work. I was wondering if anyone had any suggestions. Thank you!

 
andrew replied on at Permalink Reply
andrew
I think



should get you the current session's ID. And

$u = new User();
$uID = $u->getUserID();


will get you the current logged-in user's user ID.
jvblue replied on at Permalink Reply
I have tried the codes, but i think i am missing something very simple (new to php) I am getting
"Fatal error: Class 'Users' not found in /home/... on line 9"
So i am wondering if i am missing a heading to pull that data...


<?php
$EABS = $_POST["EABS"];
$DCBS = $_POST["DCBS"];
$SABS = $_POST["SABS"];
$HBBS = $_POST["HBBS"];
$EBBS = $_POST["EBBS"];
$XIBS = $_POST["XIBS"];
$JFBS = $_POST["JFBS"];
$u = new User();
$uID = $u->getUserID();

this is my top 10 lines...