Just another rainy day
Posts: 1
10 credits Members referred : 0
« on: Jun 23, 2010, 09:54:05 am »
Here's what I did in my access class. I added it at the end.
Code:
function getID() { return $this->userData[$this->tbFields['userID']]; } }
In my php file I added this:
Code:
$user = new flexibleAccess(); $displayID = $user->getID();
I can echo $displayID, but I can't add it to the db. It won't initialize, but if I initialize it to zero or something, it works fine. I want to be able to insert the userid in the table and not a hard coded number like zero.
Here's my php file (I added my access.class.php to config.php):