RaitisRR Posted March 20, 2007 Report Share Posted March 20, 2007 sveicinati man jautajums par swich .. man swich tiek uzdrukats konrketa tabula weblapas viduu a piem ka lai uztaisa taa ja txt parsniedz kkadu burtu sakitu tiek izdrukats jauna tabulaa ? <table width="90%" cellspacing="0" cellpadding="0"> <tr> <td><div align="justify"><?php include("switch.php");?></div></td> </tr> </table> doma apmeram shada ! vnk gribu kaa nak jauns virsraksts txt drukajas jauna tabulaa ! ka lai ta uztaisa ? nu meginaju uzimet kipa shitada taa mana doma ! _________ / \ | TXTX 11 | | | \_________ / _________ / \ | TXTX 11 | |Turpinajums| \_________ / Link to comment Share on other sites More sharing options...
andrisp Posted March 20, 2007 Report Share Posted March 20, 2007 Kas tev tajā mistiskajā switch.php ir iekša ? Plain texts vai php kods kaut kāds arī ? vnk gribu kaa nak jauns virsraksts txt drukajas jauna tabulaa Kāds vēl virsraksts ? Ja dalīsi vienkārši pa, piem., 100 simboliem, tad tavi virsraksti arī tiks sagriezti. Padomā vēlreiz, ko tev īsti vajag un kā to mums pajautāt. Link to comment Share on other sites More sharing options...
RaitisRR Posted March 20, 2007 Author Report Share Posted March 20, 2007 gribu ta lai kad nak virsraksts tiek izrukats jauna tabulaa ! ja neviens nevar palidzet ka to izdariit tad vnk pasakiet ka lai izdrukajas switch jauna tabula pec piem 1000 simboliem.... Link to comment Share on other sites More sharing options...
andrisp Posted March 20, 2007 Report Share Posted March 20, 2007 mjah.. Ja gribi, lai tev palīdzi, tad vismaz atbildi uz jautājumiem, ko tev uzdod. Tev tajā switch.php ir php kods vai tikai tīrs html ar tekstu (vai arī tikai teksts)? Link to comment Share on other sites More sharing options...
RaitisRR Posted March 20, 2007 Author Report Share Posted March 20, 2007 (edited) ir tiirs html ar textu... Edited March 21, 2007 by RaitisRR Link to comment Share on other sites More sharing options...
andrisp Posted March 21, 2007 Report Share Posted March 21, 2007 Kāds tas html ir ? Ieliec iekš paste.php.lv. Dalot pa noteiktu 1000 simbolu skaitu, sviests vien sanāks. Link to comment Share on other sites More sharing options...
rpr Posted March 21, 2007 Report Share Posted March 21, 2007 prieksh tam ir cikli un substr funkcija Link to comment Share on other sites More sharing options...
larvae Posted March 21, 2007 Report Share Posted March 21, 2007 Kad fečo no bāzes masīvā, ik pēc 1000 rindām pievieno 'lielajam' masīvam un ar dubulto ciklu izdrukā. Tabulas galvu ieliec ārējā ciklā. Link to comment Share on other sites More sharing options...
andrisp Posted March 21, 2007 Report Share Posted March 21, 2007 Kaadi jums veel masiivi un cikli, un substringi ? Ja vajag sadaliit pa vienaadaam daljaam, tad jaaizmanto http://lv2.php.net/manual/en/function.chunk-split.php. Bet shis variants taapat neder shajaa gadijumaa. Link to comment Share on other sites More sharing options...
RaitisRR Posted March 21, 2007 Author Report Share Posted March 21, 2007 nu lab pienemsim taa lai izdrukaa kautvai jauna tabulaa pie katras atkaapes ... ka lai to paveic ? Link to comment Share on other sites More sharing options...
andrisp Posted March 21, 2007 Report Share Posted March 21, 2007 Pieņemot, ka tev atkāpe nozīmē \n, tad: <?php $f = file_get_contents('faila_nosaukums_kur_tev_glabaajas_tie_teksti'); $blocks = explode("\n", $f); foreach($blocks as $v) { ?> <table border="1"> <tr> <td><?php echo $v; ?></td> </tr> </table> <?php } ?> Link to comment Share on other sites More sharing options...
Recommended Posts