J-EX Posted December 28, 2006 Report Share Posted December 28, 2006 taatad es veelos incluudot lapu... rakstu... <? include("lapa.php"); // viss notiek include("lapa.php?mainigais=lielums"); //nekas nedarbojas... :( ?> nevarētu kaads palīdzēt, kas tur par lietu? Link to comment Share on other sites More sharing options...
Slammer Posted December 28, 2006 Report Share Posted December 28, 2006 Tā jau darīt pohodu nedrīkst. Iekš tās lapas, ko tu includo tev ir jāuzraksta: $lielums == $_GET['mainigais']; Link to comment Share on other sites More sharing options...
J-EX Posted December 28, 2006 Author Report Share Posted December 28, 2006 darbojas !!! Liels paldies! :) Link to comment Share on other sites More sharing options...
tiy Posted December 28, 2006 Report Share Posted December 28, 2006 neesmu meginajis, bet ja failu ta ari nosauc piem lapa.php?mainigais=5 un tad ari ta include include("lapa.php?mainigais=5"); ? Link to comment Share on other sites More sharing options...
vabole Posted December 28, 2006 Report Share Posted December 28, 2006 Failu nevar nosaukt ar ? vai =, vismaz uz windows. smile.gif Link to comment Share on other sites More sharing options...
bubu Posted December 28, 2006 Report Share Posted December 28, 2006 Ar = var. Ar ? gan nevar. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 28, 2006 Report Share Posted December 28, 2006 (edited) Tā jau darīt pohodu nedrīkst. Iekš tās lapas, ko tu includo tev ir jāuzraksta:$lielums == $_GET['mainigais']; NEE!!! Tā jau darīt Slammer nedrikst !!! ( == ) ir salidzinashana !!! ( = ) ir pieskirshana !!! ( === ) ir preciizu tipu salidzinashana (vai tas tiesham ir INT [vajadzigais datu tips ] ... ) P.S. Bet pamatDoma tev bija pareiza.... ("pekasijos tik pie sintakses" ) edit: bet vispaar includojamais fails tachu visas veertiibas manto no mates faila ;) taa kaa ... + f-ja include() var atgiezt (atgriezj) vertiibu ;) ja includojamaa failaa pa vidu uzrakstiisi RETURN $vertiiba tad vinsh izpildiisies tik liidz tai vietai un echo include("bla.php"); izvadiis uz ekraana $vertiiba ..... respektiivi uzvediisies taapat kaa parasta f-ja ;) Edited December 29, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
Slammer Posted December 29, 2006 Report Share Posted December 29, 2006 Nu tā arī domāju, ka piekasīsies kāds par to stingro salīdzinājumu.. Bet viņam jau gāja, tāpēc labot kaut kā negribējās ;) Link to comment Share on other sites More sharing options...
andrisp Posted December 29, 2006 Report Share Posted December 29, 2006 Nekas tur nevarēja iet. Link to comment Share on other sites More sharing options...
ok1 Posted December 29, 2006 Report Share Posted December 29, 2006 piekrītu andrisp :DD Link to comment Share on other sites More sharing options...
archux Posted January 2, 2007 Report Share Posted January 2, 2007 Nu es provēju taa kā tu raxti: Tā jau darīt pohodu nedrīkst. Iekš tās lapas, ko tu includo tev ir jāuzraksta:$lielums == $_GET['mainigais']; Bet man kaut kā nesanāca! Es laikam nesapratu kur tad īsti jārāksta tas $lielums == $_GET['mainigais']; ! Vai var kāds uzrakstīt precīzāku rindu nu tur include ($lielums == $_GET['mainigais']; ); vai kaut kā tā! Link to comment Share on other sites More sharing options...
andrisp Posted January 2, 2007 Report Share Posted January 2, 2007 dari taa: $mainigais = $_GET['mainigais']; require('lapa.php'); // Tagad ieksh lapa.php varēs piekļūt $mainigais Link to comment Share on other sites More sharing options...
archux Posted January 2, 2007 Report Share Posted January 2, 2007 (edited) Tu gribeeji teikt: $lielums = $_GET['mainigais']; require('lapa.php'); ? visu taalaak paraadiija pats biju gljuudiijies :) Edited January 2, 2007 by archux Link to comment Share on other sites More sharing options...
bubu Posted January 2, 2007 Report Share Posted January 2, 2007 Nē, vinš pateica tieši to, ko gribēja, un nevis to, ko tu uzrakstīji. Izlasi tak viņa postu līdz galam (arī pēdējo rindiņu). Link to comment Share on other sites More sharing options...
archux Posted January 2, 2007 Report Share Posted January 2, 2007 (edited) biki izdarīju savaadaak, tagad viss sanāca, paldies:) Edited January 3, 2007 by archux Link to comment Share on other sites More sharing options...
Recommended Posts