Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding session variable to new account


utahfriend

Recommended Posts

Posted

I want an affliate code that I have as a session variable. I am trying to have that variable added to the database. I have added a field called "affiliate" to the database. I made a variable, by inserting the following around LINE 45:

$affiliate = $_SESSION['affiliate'];

 

Then in the array I added this:

 

      $sql_data_array = array('customers_firstname' => $firstname,
                             'customers_lastname' => $lastname,
                             'customers_email_address' => $email_address,
                             'customers_telephone' => $telephone,
                             'customers_fax' => $fax,
                             'customers_newsletter' => $newsletter,
		      'customers_affiliate' => $affiliate,
                             'customers_password' => tep_encrypt_password($password));

 

But when I run the program, the screen just blanks and freezes. What am I doing wrong?

 

Thank you for your help.

Archived

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

×
×
  • Create New...