
October 3rd, 2002, 01:32 AM
|
|
|
|
Join Date: Apr 2007
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
someone please help
is there anything wrong with this that you can see, let me know if you need to know something else.
php Code:
Original
- php Code |
|
|
|
<td><table border="0" cellspacing="0" cellpadding="2"> <tr valign="top"> <?php $rows = 1; $options = 1; $customers_group_query = tep_db_query("select distinct customers_group_id, customers_group_name from " . TABLE_CUSTOMERS . " where customers_group_id != '" . 0 . "' order by customers_group_id"); $header = false; while ($customers_group = tep_db_fetch_array($customers_group_query)); { if (!$header) { $header = true; ?> <td><table border="0" cellpadding="0" cellspacing="0"> <tr class="dataTableHeadingRow"> <td class= "dataTableHeadingContent" colspan= "3"><?php echo $options['products_options_name']; ?></td> </tr> </td> <?php } if (tep_db_num_rows($customers_group_query) > 0) { $attributes_query = tep_db_query("select customers_group_id, customers_group_price from " . TABLE_PRODUCTS_GROUPS . " where products_id = '" . $pInfo->products_id . "' and customers_group_id = '" . $customers_group['customers_group_id'] . "' order by customers_group_id"); $attributes = tep_db_fetch_array($attributes_query); } else { $attributes = array('customers_group_id' => 'new'); } ?> <tr class="dataTableRow"> <td class= "dataTableContent"><?php echo tep_draw_checkbox_field ('option[' . $rows . ']', 'option[' . $rows . ']', true) . ' ' . $customers_group['customers_group_name']; ?> </td> <td class="dataTableContent"><?php if ($rows == $attributes['customers_group_id']) { echo tep_draw_input_field ('price[' . $rows . ']', $attributes['customers_group_price'], 'size="7"'); } else { echo tep_draw_input_field ('price[' . $rows . ']', '', 'size="7"'); } ?></td> </tr> <?php $rows ++; } if ($header) { ?> </table></td> <?php } ?> </tr> </table> </td> </tr>
|