pantufas_online Posted August 17, 2011 Posted August 17, 2011 Hello! i've installed the login box into my oscommerce store, on the left column...first it gives me erros because the code is deprecated, but at this moment and even with the errors it works...appears everything. when i start resolving those problems the errors disappears but the name of the user don't appear any more <?php if (tep_session_is_registered('customer_id')) { $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_LOGIN_BOX_MY_ACCOUNT); new infoBoxHeading($info_box_contents, true, true); $db=DB_DATABASE; $select="select customers_gender, customers_firstname, customers_lastname from customers where customers_id=\"$customer_id\""; $result=mysql_db_query($db,$select); $res=mysql_fetch_object($result); tep_session_register('customer_id'); the problem is in this 2 lines $result=mysql_db_query($db,$select); $res=mysql_fetch_object($result); hope someone have an idea... thanks :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.