Re: OT problémek v PHP
David Obdrzalek
David.Obdrzalek na mff.cuni.cz
Středa Srpen 21 12:31:03 CEST 2013
Coze??? To znamena, ze konkatenace retezcu se neprovede kopirovanim, ale
odkazem na skladane retezce? To by pak nemohla teckova konkatenace promennych v
podstate vubec fungovat, ne?
D.O.
On 19 Aug 2013 at 19:22, Tom Meinlschmidt wrote:
> unset je vinik. bohuzel vymaze i hodnotu z toho predchoziho stringu.
> takze nedelat unset($item_id)
>
> tm
>
> On Aug 19, 2013, at 19:10 , Kosta <info na mcu.cz> wrote:
>
> > 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> » "."<a
> href='mcushop.php?mcat.".$category_main_id."'>".$main_category_name."</a>"."
> » ".$category_name;
> > $ns -> tablerender($title, $text);
> >
> > --
> > S pozdravem
> > M Kosťa Kostomlatský
> >
> > _______________________________________________
> > HW-list mailing list - sponsored by www.HW.cz
> > Hw-list na list.hw.cz
> > http://list.hw.cz/mailman/listinfo/hw-list
>
> --
> ==============================================================================
> =
> Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache
>
> www.meinlschmidt.com www.maxwellrender.cz
> ==============================================================================
> =
>
> _______________________________________________
> HW-list mailing list - sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
Další informace o konferenci Hw-list