anonīms Posted March 3, 2008 Report 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
andrisp Posted March 3, 2008 Report Posted March 3, 2008 100% kļūda tajā pārējā IF struktūrā, kuru tu neesi iekopējis.
anonīms Posted March 3, 2008 Author Report 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
andrisp Posted March 3, 2008 Report Posted March 3, 2008 mod_rewrite vispār strādā ? Un kas īsti notiek ? Servera kļūda ? Atveras nepareiza lapa ? Neatveras nekas ?
anonīms Posted March 3, 2008 Author Report 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
anonīms Posted March 3, 2008 Author Report Posted March 3, 2008 Array ( [id] => 1 [lasiit] => 23 ) Array ( [id] => 1 [lasiit] => 23 )
anonīms Posted March 3, 2008 Author Report Posted March 3, 2008 Nesapratu... :\ Array ( [id] => 6 [lasiit] => 6 ) Vnk biju 2-reiz iekopējis.
andrisp Posted March 3, 2008 Report Posted March 3, 2008 Nu lukur: elseif(isset($_GET['id']) and isset($_GET['lasiiit']) and $_GET['lasiiit'] == 'kak_tam') {
anonīms Posted March 3, 2008 Author Report 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
Recommended Posts