Jump to content

How to code to recall a cell based on a reference cell


ppunzi

Recommended Posts

I have learned php coding by doing (looking for patterns and trying things) and I have hit a roadblock trying to modify a template that creates a delimited text file of products from an ecommerce site (Sunshop) for upload to google base. I have tried to search for the answer but I don't know what I don't know so I may not have put the right search terms in.  So I apologize if this has been addressed in the past.

 

  The script uses case to call up the contents of specific rows of the product table which I understand but in when I want to call up the manufacturer row Sunshop uses a reference number and then a different table called manufacturers with an ID row that matches the manufacturer row numbers (that are associated with each product) and then next to it a name row which contains the actual manuracturer names.  Can I put code in the case that will pull up the referenced name as opposed to just the numbers that are in the column?

 

This is what I have now that just calls up the cells from the manufacurer row:

 

case 'mfg': $item[mfg] = $item[manufacturer];

 

The mfg refers to this part of the code in an array:

 

array('header' => 'manufacturer',	'value' => 'mfg'),

 

In case it helps I will attach the full document.  Thanks.

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.