conn,$cfg_theme,$cfg_currency_symbol,$lang); if(!$sec->isLoggedIn()) { header ("location: ../login.php"); exit(); } if($_POST[ID]){ $userLogin = $_SESSION['session_user_id']; mysql_query("UPDATE users SET customerID='$_POST[ID]' WHERE id='$userLogin'"); echo ""; } $result = mysql_query("SELECT id,first_name,last_name FROM customers ORDER BY last_name ASC"); $body.="
It appears as though your bike tree user account has not been linked with a bike root member account. Please select your member account.
          Users:


"; echo "$body"; /*//check to make sure it's a number if(!strval(floatval($_POST[openCount])) == strval($_POST[openCount])){ echo ""; exit(); } //check to make sure it was the administrator who counted if(!$_POST[counter]){ echo ""; exit(); } //$tablename = $cfg_tableprefix.'users'; $userLoginName = $dbf->idToField($cfg_tableprefix.'users','username',$_SESSION['session_user_id']); $tablename="$cfg_tableprefix".'books'; $field_names=null; $field_data=null; $today = date('Y-m-d'); $field_names=array('date','event','user','ammount','data'); $field_data=array("$today", "open", "$userLoginName","$_POST[openCount]","$_POST[mechID]"); $dbf->insert($field_names,$field_data,$tablename,""); $tablename="$cfg_tableprefix".'visits'; $tdin = date('Y-m-d H:i:s'); $field_names=array('userID','intime','activity'); $adminID = $dbf->idToField($cfg_tableprefix.'users','customerID',$_SESSION['session_user_id']); $field_data=array("$adminID", "$tdin", "Administrator"); $dbf->insert($field_names, $field_data, $tablename, ""); echo "";*/ $dbf->closeDBlink(); ?>