I dug into the Module code for this, and wondering if the problem is here. Note, my customers_info table is receiving the other data (ID, 0, Now) but not the source ( (int)$source ).
Code:
values ('" . (int)$_SESSION['customer_id'] . "', '0', now(), '" . (int)$source . "')";
From the mod:
PHP Code:
//rmh referral start
$query_insert= "insert into " . TABLE_CUSTOMERS_INFO . "
(customers_info_id, customers_info_number_of_logons, customers_info_date_account_created, customers_info_source_id)
values ('" . (int)$_SESSION['customer_id'] . "', '0', now(), '" . (int)$source . "')";
$db->Execute($query_insert);
$db->Execute($sql);
if ($source == '9999') {
zen_db_perform(TABLE_SOURCES_OTHER, array('customers_id' => $_SESSION['customer_id'], 'sources_other_name' => $source_other));
}
// $sql = "insert into " . TABLE_CUSTOMERS_INFO . "
// (customers_info_id, customers_info_number_of_logons,
// customers_info_date_account_created)
// values ('" . (int)$_SESSION['customer_id'] . "', '0', now())";
//
// $db->Execute($sql);
//rmh referral end
Bookmarks