alex_red Posted September 11, 2006 Posted September 11, 2006 (edited) Hi everybody, i was wondering if maybe anybody has the same problem what i have with this two contributions: TotalB2B_1.2d and login with customers number 1.0a Both contribs are trying to change some code in the login.php at ca. line 27 // Check if email exists //TotalB2B start $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, customers_status from " . TABLE_CUSTOMERS . " where customers_status = '1' and customers_email_address = '" . tep_db_input($email_address) . "'"); if (!tep_db_num_rows($check_customer_query)) { $HTTP_GET_VARS['login'] = 'fail'; } else { $check_customer = tep_db_fetch_array($check_customer_query); //TotalB2B end <!---------------------------------------------------------------------------------------------------------------> // Check if email exists $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); // IQ 20040705-1-dh a002 if (!tep_db_num_rows($check_customer_query)) { if (IQ_ADDITIONAL_CUSTOMERS_NUMBER == 'enable') { $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, customers_additional_customers_number from " . TABLE_CUSTOMERS . " where customers_additional_customers_number = '" . tep_db_input($email_address) . "'"); if (!tep_db_num_rows($check_customer_query)) { $error = true; } } else { $error = true; } } if($error != true) { // IQ 20040705-1-dh a002 end Does somebody have an idea how to combine these two code snippets that they will work? I tried and tried and tried but no sucess, i also have to say that my php knowledge isnt that good. Would be fantastic there would be a solution for that. Kind regards Alex Edited September 11, 2006 by alex_red Quote
alex_red Posted September 12, 2006 Author Posted September 12, 2006 Hello again, is there really nobody who knows how to combine these two code snippets? I'm greatful for every tip. Kindest regards Alex 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.