OT problémek v PHP

Kosta info na mcu.cz
Pondělí Srpen 19 19:10:36 CEST 2013


Dne 19.8.2013 18:28, Pavel Kutina napsal(a):
> Nebyl by kus realneho kodu? Tahle ukazka je stav, jak by to melo 
> fungovat, ne jak to funguje, ve skutecnem kodu je evidentne neco jineho.
>
> Pavel Kutina




     $text = "";
     $cat_container = "";
     while($row = $sql-> db_Fetch()){
           $item_id          = $row['item_id'];

//======================================================================== 
MKMK
             // Category item template - Category repeating element: 
cat_container
//======================================================================== 
MKMK
         $cat_container .= "<div class= 'mcu_table-cell'>";
         $cat_container .= $item_id."<br/>";
         $cat_container .= "</div>";
//========================================================================
           unset($item_id, $item_category_, $item_image, $item_name, 
$item_description, $item_price, $item_sku);

     } // End of while fetch

//============================================================================ 
MKMK
     // Category page template
//============================================================================ 
MKMK
     $text .= "<table><tr><td width=100%><center>";
     $text .= "<div class='mcu_table'>";
     $text .= "  <div class='mcu_table-row'>";
//----------------------------------------------------------------------------
     $text .= $cat_container; //
//---------------------------------------------------------------------------- 

     $text .= "  </div>"; // mcu_table-row
     $text .= "</div>";   // mcu_table
     $text .= "<center></td></tr></table>";
//============================================================================
     // Render the value of $text in a table.
     $title = "<a href='mcushop.php'>MCUshop</a> &raquo; "."<a 
href='mcushop.php?mcat.".$category_main_id."'>".$main_category_name."</a>"." 
&raquo; ".$category_name;
     $ns -> tablerender($title, $text);

-- 
S pozdravem
M Kosťa Kostomlatský



Další informace o konferenci Hw-list