jauninjais Posted June 29, 2006 Report Share Posted June 29, 2006 kr4 man ir kods: if ($include=="123"){ include '123.php'; } if(isset($_GET['include']) && file_exists($_GET['123'].'.php')) { include($_GET['123'].'.php'); } else { echo $result2[0]; } $result2[0] ir no DB izvilkts rezultaats. probleema taada, ka, ja aizeju lapa.lv/?include=123 tad paraadaas incluudotais + veel apakshaa $result2[0] . kaapeec vinsh man raada $result2[0], ja tas tur netiek prasiits? Link to comment Share on other sites More sharing options...
v3rb0 Posted June 29, 2006 Report Share Posted June 29, 2006 tak varbūt izlasi ko pats sarakstījis.. if ($include=="123"){ include '123.php'; // IZPILDAS } if(isset($_GET['include']) && file_exists($_GET['123'].'.php')) { include($_GET['123'].'.php'); // NEIZPILDAS } else { echo $result2[0]; // IZPILDAS } Link to comment Share on other sites More sharing options...
jauninjais Posted June 29, 2006 Author Report Share Posted June 29, 2006 to, ka tas neizpildaas es sapratu, bet kaapeec neizpildaas? Link to comment Share on other sites More sharing options...
bubu Posted June 29, 2006 Report Share Posted June 29, 2006 isset($_GET['include'])==false vai file_exists($_GET['123'].'.php')==false Link to comment Share on other sites More sharing options...
jauninjais Posted June 29, 2006 Author Report Share Posted June 29, 2006 (edited) aa viss skaidrs, paldies ;) p.s. shis kods bija pareizs, nedaudz citur man bija nepareizi uzraxtiits Edited June 30, 2006 by jauninjais Link to comment Share on other sites More sharing options...
Recommended Posts