Welche Abfrage findet statt

Idealist

Grünschnabel
PHP:
: 
        <td> 
          <table border="0" cellspacing="0" cellpadding="2"> 
            <tr valign="top"> 
<?php 
    $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> 
<?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"); 
     } else { 
         $attributes = array('customers_group_id' => 'new'); 
       } 
?> 
    <tr class="dataTableRow"> 
       <td class="dataTableContent"><?php echo tep_draw_checkbox_field('sppcoption[' . $customers_group['customers_group_id'] . ']', 'sppcoption[' . $customers_group['customers_group_id'] . ']', true) . '&nbsp;' . $customers_group['customers_group_name']; ?>&nbsp;</td> 
       <td class="dataTableContent"><?php 
       if ($attributes = tep_db_fetch_array($attributes_query)) { 
       echo tep_draw_input_field('sppcprice[' . $customers_group['customers_group_id'] . ']', $attributes['customers_group_price'], 'size="7"'); 
       } else { 
      echo tep_draw_input_field('sppcprice[' . $customers_group['customers_group_id'] . ']', '', 'size="7"'); 
    } ?> </td>

Das ist der Code, und mein Problem ist die Abfrage:
PHP:
$header = false;

Weil ich bekomm diese Tabelle einfach nicht angezeigt, und ich glaube das es daran liegt, das header offenbar false ist. Was wird da abgefragt?
 
$header = false;

isz keine Abfrage sondern eine Zuweisung eines Werts
Sprich die Var $header ist false gesetzt ...

das Keine Ausgabe kommt liegt an der While Schleife

wenn keine daten aus der Datenbank kommen, dann wird auch nix ausgegeben :-)
 
Zurück