MārisL Posted November 4, 2007 Report Share Posted November 4, 2007 Lapā iekļaujot <?php // Lietotājs nav ielogojies if(!isset($session['userid'])){ echo "Rekonstrukcija"; exit; } // Lietotājs ir ielogojies $row=mysql_fetch_object(mysql_query("select * from lietotaji where userid='$session[userid]'")); echo "<br>Lietotājs: $session[userid]<br /><a href=update-profile.php>Profils</a><br /><a href=change-password.php>Mainīt paroli</a><br /><a href=logout.php>Izlogoties</a><br />"; ?> Viss, kas atrodas aiz tā pazūd. Kas varētu būt par vainu? :X Link to comment Share on other sites More sharing options...
bubu Posted November 4, 2007 Report Share Posted November 4, 2007 Apskati HTML sourci browserī (view source). Tur droši vien kautkas labs būs ieraugāms. Link to comment Share on other sites More sharing options...
andrisp Posted November 4, 2007 Report Share Posted November 4, 2007 Esi pārliecināts, ka $session['userid'] vispār eksistē ? Nedomāji $_SESSION ? Link to comment Share on other sites More sharing options...
MārisL Posted November 4, 2007 Author Report Share Posted November 4, 2007 (edited) #session[userid] eksistē. Vienkārši logins pārmet lietotāju uz citu labu, bet es vēlos, lai viss būtu sāna panelī... bubu - neko labu neieraudziju ;[ Edited November 4, 2007 by MārisL Link to comment Share on other sites More sharing options...
bubu Posted November 4, 2007 Report Share Posted November 4, 2007 Kas ir "nekas"? Link to comment Share on other sites More sharing options...
MārisL Posted November 4, 2007 Author Report Share Posted November 4, 2007 (edited) Viss strādā. Zem echo vēlreiz pievienoju 'apaksa.php' Edited November 4, 2007 by MārisL Link to comment Share on other sites More sharing options...
Recommended Posts