briedis Posted May 6, 2010 Report Share Posted May 6, 2010 A kur ir problēma? Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 Bet kāpēc man $_SESSION[username] ieliek niku bet $_SESSION[bilde] neieliek bildi? šeit! Quote Link to comment Share on other sites More sharing options...
briedis Posted May 6, 2010 Report Share Posted May 6, 2010 Kas tā bilde tāda ir? Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 nu foto :D Quote Link to comment Share on other sites More sharing options...
briedis Posted May 6, 2010 Report Share Posted May 6, 2010 nu foto :D Tjipa, teksts "foto"? Link uz bildi? Pati bilde vai kas? Quote Link to comment Share on other sites More sharing options...
Klez Posted May 6, 2010 Report Share Posted May 6, 2010 a kur tu šitam $_SESSION[bilde] vērtību piešķir ? P.S visu koda kluci šeit neliec. Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 briedi, foto links Klez, Es iepriekš taču rādīju :D vairāk nav :D Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 <?php session_start(); if (!empty($_SESSION[username])) { include('header.php'); echo "$_SESSION[bilde]"; include('footer.php'); } else { include('login.php'); } ?> Quote Link to comment Share on other sites More sharing options...
Klez Posted May 6, 2010 Report Share Posted May 6, 2010 (edited) tu nerādīji kā tiek izveidoti mainīgais tas kas ir augstāk, tur vienmēr abi mainīgie būs tukši (false). Edited May 6, 2010 by Klez Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 Nu bet $_SESSION[username] ieliek niku bet $_SESSION[bilde] neieliek bildi Kāpēc niku liek? Quote Link to comment Share on other sites More sharing options...
Klez Posted May 6, 2010 Report Share Posted May 6, 2010 (edited) es tak jau tev prasu koda gabalu, kā tu $_SESSION[username] ieliec to niku un kā $_SESSION[bilde] tu ieliec to bildi Edited May 6, 2010 by Klez Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 Tur tas prikols ka es nemāku, jau pašā sākumā jautāju :D vienīgi login page šis ir $query = mysql_query("SELECT * FROM members WHERE username = '$_POST[username]' AND password = '$_POST[password]'") Quote Link to comment Share on other sites More sharing options...
Klez Posted May 6, 2010 Report Share Posted May 6, 2010 (edited) bet tev tak rādīja kā to dara .... $mainigais = 'veertiiba'; $_SESSION['nosaukums'] = 'veertiiba'; atver kaadu open source projektu un skaties kaa tur rakstiis man jau liekas ka tu tik ātri neuztaisiisi to ko tu vēlies šac ar šo : http://freefm.lv/lv/php_soli_pa_solim/ sāc ar 2 nodaļu ... + ja gribi draudzēties ar php, būs jādraudzējas arī ar angļu valodu Edited May 6, 2010 by Klez Quote Link to comment Share on other sites More sharing options...
gunmetal Posted May 6, 2010 Author Report Share Posted May 6, 2010 Nu jā bet kā lai es tos mainīgos ielieku šite <?php session_start(); if (!empty($_SESSION[username])) { include('header.php'); echo "$_SESSION[bilde]"; include('footer.php'); } else { include('login.php'); } ?> lai darbojas bilde Quote Link to comment Share on other sites More sharing options...
bobsters Posted May 6, 2010 Report Share Posted May 6, 2010 (edited) tev tā bilde db stāv vai uz datora? ja uz datora tad <?php session_start(); if (!empty($_SESSION[username]))[/size][/font][/color] $_SESSION[bilde]="bildes_nosaukums_katram_lietotajam_atsevisks"; { include('header.php'); echo "<img src=/bildes/atrasanas/vieta/$sesijasbilde.jpg"; include('footer.php'); } else { include('login.php'); } ?> Edited May 6, 2010 by bobsters Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.