sanlam Posted July 28, 2004 Posted July 28, 2004 How do i show the login name after login? what is the code can i add? thanks
rcmdesign Posted July 29, 2004 Posted July 29, 2004 if (tep_session_is_registered('customer_id')) { $account_query = tep_db_query("select customers_firstname, customers_lastname from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'"); $account = tep_db_fetch_array($account_query); $name = $account['customers_firstname'] . ' ' . $account['customers_lastname']; echo $name; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.