Janky Posted September 30, 2005 Report Share Posted September 30, 2005 taatad cik es sapratu tas ko mekleeju ir inframe :rolleyes: lieta taada ka gribu uztaisiit lapaa taadu lietu ka, piemeeram, lapas kreisajaa pusee ir linki, paareejaa dallaa(pa vidu lapai) ir teiksim texts vajag panaakt taa lai nospiezzot uz linka kreisajaa malaa taa dalla veelreiz nelaadeetos pa jaunu vnk lapas viduu paarlaadeejas teiksim cits texts vai bildes :unsure: cerams saprataat ko biju domaajis ar to visu ;) Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 nevajag tur nekādu iframe. Vajag parstu php kodu: <!-- kreisā puse --> <a href="?lapa=zinjas">ziņas</a> <a href="?lapa=jaunumi">jaunumi</a> <!-- labā puse --> <?php $lapa = isset($_GET['lapa']) ? $_GET['lapa'] : 'jaunumi'; switch ($lapa) { case 'zinjas': echo 'Te ir ziņas'; break; case 'jaunumi': echo 'Te ir jaunumi'; break; } ?> To visu ieliec vienā failā, palaid un paskaties. Link to comment Share on other sites More sharing options...
Janky Posted September 30, 2005 Author Report Share Posted September 30, 2005 kautkas tur laikam nav iisti pareizi jo uz abiem spiezzot raada 'Te ir jaunumi' :unsure: Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 Tā kā man strādā pareizi, tad 100% kautko ne tā esi nokopējis/norakstījis/vēl sazin ko izdarījis. Link to comment Share on other sites More sharing options...
Janky Posted September 30, 2005 Author Report Share Posted September 30, 2005 tieshaam vaina bij manii uztaisiju veelreiz viss straadaa ^_^ liels paldies ;) B) Link to comment Share on other sites More sharing options...
Janky Posted September 30, 2005 Author Report Share Posted September 30, 2005 veel taads droshvien mullkkiigs jautaajums :unsure: kaa taa teksta vietaa ievietot piemeeram index.php failu ? Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 require_once('include.php'); Atbildes uz šādiem jautājumiem tev jāmeklē šeit: http://lv.php.net/manual/en/ Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 30, 2005 Report Share Posted September 30, 2005 veel taads droshvien mullkkiigs jautaajums :unsure: kaa taa teksta vietaa ievietot piemeeram index.php failu ? 23581[/snapback] jautaajums tieshaam diivais - cik peec taa var spries tad no PHP nezini Prakstiski neko.... manuaalis manuaalis un velreiz manuaalis... ------- include (index.php); tikai atceries ka pie pareizas servera konfiguraacijas index.php laadeesies uzreiz - protams ja nebuus index.html :) un ja doto kodu ieliksi tajaa pashaa index.php tad buus Muuziigais cikls - fails meginaas iekljaut pats sevi .... ;) P.S. to bubu.. ----- cit. nevajag tur nekādu iframe. Vajag parstu php kodu: --------- ar iframe to var izdariit neizmantojot PHP ;) un tava koda izpildei lapa IR jaapaarlaadee ... Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 ar iframe to var izdariit neizmantojot PHP ;)un tava koda izpildei lapa IR jaapaarlaadee ... 23583[/snapback] Ja jautājums ir php sadaļā, tad es uz to atbildu par php runājot. Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 un ja doto kodu ieliksi tajaa pashaa index.php tad buus Muuziigais cikls - fails meginaas iekljaut pats sevi .... ;) Tāpēc paredzētas require_once/include_once fjas, nevis require/include. Link to comment Share on other sites More sharing options...
keissfootball Posted September 30, 2005 Report Share Posted September 30, 2005 labāk imantot tabulu metodi, piemēram <table height="500" border="1"> <tr> <td width="200"> <a href="tabula.php?id=info">Informacija</a> <a href="tabula.php?id=jaunumi">Jaunumi</a> </td> <td width="350"> <?php if ("info"==$id) { include('jaunumi2.php'); echo "Shi ir info sadalja"; } elseif ("jaunumi"==$id){ echo "Shi ir jaunumu sadalja";} include('jaunumu_lapa.php'); ?> </td> </tr> </table> man liekas tas ir ātrāk nekā inline frame Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2005 Report Share Posted September 30, 2005 labāk imantot tabulu metodi, piemēram Kas tas par murgu? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 30, 2005 Report Share Posted September 30, 2005 Tāpēc paredzētas require_once/include_once fjas, nevis require/include. 23585[/snapback] labi jau labi taa jau ir :) bet vajag taksh tautu pabiedeet Kad saku maciities PHP (nu vinju jau naakas maaciities visu laiku) man vienreiz shaads iznaakums bija :( Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 30, 2005 Report Share Posted September 30, 2005 labāk imantot tabulu metodi, piemēram SKIPOTS: man liekas tas ir ātrāk nekā inline frame 23588[/snapback] :o kaads sakars tabulaam ar freimiem un PHP izpildes aatrumu? Link to comment Share on other sites More sharing options...
Janky Posted October 1, 2005 Author Report Share Posted October 1, 2005 (edited) edit :huh: Edited October 2, 2005 by Janky Link to comment Share on other sites More sharing options...
Recommended Posts