PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 3rd, 2002, 01:32 AM
sw45859 sw45859 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 sw45859 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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
  1.  
  2. <td><table border="0" cellspacing="0" cellpadding="2">
  3. <tr valign="top">
  4. <?php
  5.     $rows = 1;
  6.     $options = 1;
  7.     $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");
  8.     $header = false;
  9.     while ($customers_group = tep_db_fetch_array($customers_group_query)); {
  10.     if (!$header) {
  11.       $header = true;
  12. ?>
  13.     <td><table border="0" cellpadding="0" cellspacing="0">
  14.       <tr class="dataTableHeadingRow">
  15.       <td class="dataTableHeadingContent" colspan="3"><?php echo $options['products_options_name']; ?></td>
  16.     </tr>
  17.     </td>
  18. <?php
  19.         }
  20.      if (tep_db_num_rows($customers_group_query) > 0) {
  21.        $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");
  22.        $attributes = tep_db_fetch_array($attributes_query);
  23.      } else {
  24.          $attributes = array('customers_group_id' => 'new');
  25.        }
  26. ?>
  27.     <tr class="dataTableRow">
  28.        <td class="dataTableContent"><?php echo tep_draw_checkbox_field('option[' . $rows . ']', 'option[' . $rows . ']', true) . '&nbsp;' . $customers_group['customers_group_name']; ?>&nbsp;</td>
  29.        <td class="dataTableContent"><?php
  30.        if ($rows == $attributes['customers_group_id']) {
  31.        echo tep_draw_input_field('price[' . $rows . ']', $attributes['customers_group_price'], 'size="7"');
  32.        } else {
  33.        echo tep_draw_input_field('price[' . $rows . ']', '', 'size="7"');
  34.      } ?></td>
  35.     </tr>
  36. <?php  $rows ++;
  37.       }
  38.       if ($header) {
  39. ?>
  40.       </table></td>
  41. <?php
  42.       }
  43. ?>
  44.      </tr>
  45.      </table>
  46.        </td>
  47.      </tr>

Reply With Quote
  #2  
Old October 3rd, 2002, 06:05 AM
siteworkspro.com siteworkspro.com is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 92 siteworkspro.com User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to siteworkspro.com Send a message via AIM to siteworkspro.com
RE: someone please help

would be nice to know what the actual problem is?

Reply With Quote
  #3  
Old October 3rd, 2002, 06:28 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: someone please help

lol

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > someone please help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway