Web Design Forum: Adding DB Table - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Adding DB Table Opencart Rate Topic: -----

#1 User is offline   Gaelen 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 28-September 11
  • Reputation: 6
  • Gender:Male
  • Location:Coquitlam, BC, Canada
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 22 December 2011 - 10:05 PM

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

Quote

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
0

#2 User is offline   Gaelen 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 231
  • Joined: 28-September 11
  • Reputation: 6
  • Gender:Male
  • Location:Coquitlam, BC, Canada
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 23 December 2011 - 04:47 PM

no one? :(
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users