Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

information not adding to database


josh48202

Recommended Posts

Posted

Could someone please let me know why this isnt adding to my database?

 

      $rep_query = tep_db_query("select entry_street_address, entry_postcode, entry_city, entry_state from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "'");
 	  $rep = tep_db_fetch_array($rep_query);

     $sql_data_array = array('rep_name' => $rep_name,
                             'party_date' => $party_date,
                             'host_name' => $host_name,
                             'host_street_address' => $host_address,
                             'host_city' => $host_city,
                             'host_state' => $host_state,
                             'host_postcode' => $host_zip,
                             'guest_name' => $guest_name,
                             'customers_id' => (int)$customer_id,
                             'rep_street_address' => $rep['entry_street_address'],
                             'rep_postcode' => $rep['entry_postcode'],
                             'rep_city' => $rep['entry_city'],
                             'rep_state' => $rep['entry_state'],
                             'rep_telephone' => $account['customers_telephone'],
                             'rep_email_address' => $account['customers_email_address']);


     tep_db_perform(TABLE_PARTY_ORDERS, $sql_data_array);

 

Everything adds except

 

'rep_street_address' => $rep['entry_street_address'],
                             'rep_postcode' => $rep['entry_postcode'],
                             'rep_city' => $rep['entry_city'],
                             'rep_state' => $rep['entry_state'],
                             'rep_telephone' => $account['customers_telephone'],
                             'rep_email_address' => $account['customers_email_address']);

Archived

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

×
×
  • Create New...