Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problems with login box


Recommended Posts

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...