Snaip3Rs Posted April 2, 2010 Report Share Posted April 2, 2010 (edited) Te es biju atradis nelielu login system skriptu! Tabulas kas jaievieto datubāzē! Links te Piekonektoties pie datubāzes! base.php Login forma! login.php Registrēšanas forma! register.php Izlogošanās funkcija! logout.php Profila lapa! index.php Būšu pateicīgs ja jūs pielabotu profila lapu! Lai uzrādītu pēdējo login reizi u.t.t. Ja varat. Ja nē tad nekas. Piemēram izveidot datubāzē vēlvienu row ar img un kad cilvēks registrējās ieliek bildes urlu un pec tam viņa profila lapā bilde rādās ar viņa username kopa! Edited April 2, 2010 by Snaip3Rs Quote Link to comment Share on other sites More sharing options...
sandis_m Posted April 2, 2010 Report Share Posted April 2, 2010 cik maksāsi? Quote Link to comment Share on other sites More sharing options...
waplet Posted April 2, 2010 Report Share Posted April 2, 2010 Un kuram? Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted April 2, 2010 Author Report Share Posted April 2, 2010 Nekuram dabūju lai jau izvada linku tikai japievieno <img></img> Quote Link to comment Share on other sites More sharing options...
chizijs Posted April 2, 2010 Report Share Posted April 2, 2010 (edited) <?php if(isset($_POST['add'])){ mysql_query("UPDATE lietotaji SET img = '".$_POST['img']."' WHERE id = '".$_SESSION['id']."'"); } ?> <form method="post"> img: <input name="img" type="text"><br/> <input name="add" type="submit"> </form> un pie profila <?php $a = mysql_fetch_assoc(mysql_query("SELECT * FROM lietotaji WHERE id = '".$_SESSION['id']."'")); if(!empty($a['img'])){ echo "<img src='".$a['img']."'>".$_SESSION['username'].""; }else{ echo $_SESSION['username']; } ?> Edited April 2, 2010 by chizijs Quote Link to comment Share on other sites More sharing options...
Kemito Posted April 2, 2010 Report Share Posted April 2, 2010 chizijs tu grauj ekonomiku, šito jau vaig sūtīt pa taisno uz "Darbs" sadaļu ! Quote Link to comment Share on other sites More sharing options...
chizijs Posted April 2, 2010 Report Share Posted April 2, 2010 Palīdzēšu tam snaip3rim, būs viņām tas skripts, tikai ko viņš no ta iemācīsies? :O Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted April 2, 2010 Author Report Share Posted April 2, 2010 (edited) Gribi lai maksāju? Gaidi kad beigsies krīze! :D Labi tagad gan bez jokiem gribi palīdzi negribi. Nespamo lieki! Liels paldies Čizijam! :) Jāmācās no paraugiem. Nevis pats uz dūlo kaut ko likt. Edited April 2, 2010 by Snaip3Rs Quote Link to comment Share on other sites More sharing options...
chizijs Posted April 2, 2010 Report Share Posted April 2, 2010 Tas nebija paraugs, tas bija skripts 10ls vertībā ^^ 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.