Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email address of the logged in user


isumitg

Recommended Posts

<?php
 if ( tep_session_is_registered('customer_id') ) {
// this code fetches it
$email_query = tep_db_query("select customers_email_address from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$customer_id . "'");
$email = tep_db_fetch_array($email_query);
// this code displays it
echo $email['customers_email_address'];
 }
?>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...