View Single Post
  #8 (permalink)  
Old 04-24-08, 09:59 AM
88mph 88mph is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
right, used this and it worked
PHP Code:

<?php
        $value_array 
= array(    'item_type',
                                
'title'
                                
'brand'
                                
'model'
                                
'serial_no',
                                
'replacement_cost',
                                
'quantity',
                                
'kit_content',
                                
'main_location',
                                
'current_location',
                                
'notes');
        
    
$result get_all_inventory();
      
    while( 
$inventory mysql_fetch_array($result)) {
        
$output "<tr>";
            
            foreach(
$value_array as $cell){
                     
$output .="<td>{$inventory[$cell]}</td>";
               };
            
            
$output .= "</tr>";
            echo 
$output;
        }
        
        
?>
Reply With Quote