sandwick Posted September 4, 2008 Posted September 4, 2008 I am trying to access the customer_id from when the customer logs into the web site so I can do some addional reports. In the login.php script I see where the information is there as listed below and store it in the second code line. line 91 $customer_id = $check_customer['customers_id']; line 120 tep_session_register('customer_id'); In one of my [box] reports I have the query listed below but it does not return the data ... $customer_id = $_SESSION['customer_id']; // at the top of the script. $get_account = tep_db_query("Select entry_company_tax_id from customers where customers_id = '" . $customer_id . "'"); $my_account = mysql_result($get_account, 0 ); echo "Account #: " . $my_account; How do I access the customer_id that looks like it is stored in a session var, $my_account is blank. Any help would be appreciated. :blink:
sandwick Posted September 11, 2008 Author Posted September 11, 2008 I need to access this var from another screen is there a way ? A little help here !!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.