December 22, 201114 yr I've run into a bit of a problem adding a new table in the DB, so far nothing I have tried has worked and I cant see why... manufacturer.tpl <tr> <td><?php echo $entry_contact; ?></td> <td><input type="text" name="contact" size="50" value="<?php echo $contact; ?>" size="10" /></td> </tr> admin/model/catalog/manufacturer.php (line 36) if (isset($data['contact'])) { $this->db->query("UPDATE " . DB_PREFIX . "manufacturer_contact SET contact = '" . $this->db->escape($data['contact']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'"); } admin/controllerl/catalog/manufacturer.php (line 354) if (isset($this->request->post['contact'])) { $this->data['contact'] = $this->request->post['contact']; } elseif (!empty($manufacturer_info)) { $this->data['contact'] = $manufacturer_info['contact']; } else { $this->data['contact'] = ``; } This is the error I'm getting Notice: Undefined index: contact in C:\xampp\htdocs\opencart\upload\admin\controller\catalog\manufacturer.php on line 357 if anyone can point out what im missing I would be very greatful
Create an account or sign in to comment