Jump to content

tlclady

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

tlclady's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. LOL...no offense taken....I didn't write the code. I'm new to PHP, but since I can't make heads or tails out of this code that I got from a website http://www.phpwebcommerce.com/ your comment actually makes me feel better. Anyway, the problem is the combo box. It is not allowing me to select the categories that I added. Supposedly, the code I shared with you is supposed to fix that, but..... See http://www.phpwebcommerce.com/qna/detail/add-products-to-category.php. Hopefully, that will give you information about what I'm trying to do. Thank you very much for responding. If you have any suggestions, that would be great, but I'm about to abandon the whole application and look elsewhere since I suspect it is, as you say, frankly a mess!
  2. Complete code module is enclosed. [attachment deleted by admin]
  3. Can anyone please tell me what is wrong with this code?! I keep getting: Parse error: syntax error, unexpected T_STRING in modify.php on line 48 // build combo box options $list = ''; foreach ($categories as $key => $value) { $name = $value['name']; $children = $value['children']; $list .= " if ($key == $catId) { $list.= " selected"; { } $list .= ">$name\r\n"; foreach ($children as $child) { $list .= " if ($child['id'] == $catId) { $list.= " selected"; } $list .= "> {$child['name']}\r\n"; } } return $list; }
×
×
  • 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.