anonīms Posted March 3, 2008 Report Share Posted March 3, 2008 (edited) elseif(isset($_GET['id']) and isset($_GET['lasiiit']) and $_GET['lasiiit'] == 'kak_tam') { echo "čav"; } .../forums.php?id=2&lasiiit=kak_tam Kādēļ viņš man neatļauj šādi? Viņš mani aizmet uz vietu, ja es pie linka būtu rakstijis .../forums.php?id=2 Hmm dīvaini, viss iet. Edited March 3, 2008 by anonīms Link to comment Share on other sites More sharing options...
andrisp Posted March 3, 2008 Report Share Posted March 3, 2008 100% kļūda tajā pārējā IF struktūrā, kuru tu neesi iekopējis. Link to comment Share on other sites More sharing options...
anonīms Posted March 3, 2008 Author Report Share Posted March 3, 2008 tieši tā! šo if ieliku viss parasta if($_GET['id']) un viss aizgāja. Bet ir cita lieta mod_rewrite RewriteRule ^forums/sadala/([0-9]*)/topiks/([0-9]*) forums.php?id=$1&lasiit=$1 Kā būtu pareizi? Šādi neiet Link to comment Share on other sites More sharing options...
andrisp Posted March 3, 2008 Report Share Posted March 3, 2008 mod_rewrite vispār strādā ? Un kas īsti notiek ? Servera kļūda ? Atveras nepareiza lapa ? Neatveras nekas ? Link to comment Share on other sites More sharing options...
anonīms Posted March 3, 2008 Author Report Share Posted March 3, 2008 (edited) Viņš aiziet uz lapu, kur ir norādīts id (atver noteikto sadaļu) mod_rewrite strādā, bet šī rinda nē Edited March 3, 2008 by anonīms Link to comment Share on other sites More sharing options...
andrisp Posted March 3, 2008 Report Share Posted March 3, 2008 Uztaisi print_r($_GET). Ko tas satur ? Link to comment Share on other sites More sharing options...
anonīms Posted March 3, 2008 Author Report Share Posted March 3, 2008 Array ( [id] => 1 [lasiit] => 23 ) Array ( [id] => 1 [lasiit] => 23 ) Link to comment Share on other sites More sharing options...
andrisp Posted March 3, 2008 Report Share Posted March 3, 2008 A iekš koda ta ir ar trim i. Link to comment Share on other sites More sharing options...
anonīms Posted March 3, 2008 Author Report Share Posted March 3, 2008 Nesapratu... :\ Array ( [id] => 6 [lasiit] => 6 ) Vnk biju 2-reiz iekopējis. Link to comment Share on other sites More sharing options...
andrisp Posted March 3, 2008 Report Share Posted March 3, 2008 Nu lukur: elseif(isset($_GET['id']) and isset($_GET['lasiiit']) and $_GET['lasiiit'] == 'kak_tam') { Link to comment Share on other sites More sharing options...
anonīms Posted March 3, 2008 Author Report Share Posted March 3, 2008 Aizmirsu pateikt, ka ar to esmu ticis galā un mod_rewrite ir saistīts ar šādu if if(isset($_GET['id) and isset($_GET['lasiit'])) bet nu lieta tāda, ka no linka http://.../forums.php?sadala=1&topiks=23 vajag ietgūt http://.../forums/sadala/1/topiks/23 Link to comment Share on other sites More sharing options...
Recommended Posts