FT3 Posted February 10, 2010 Report Share Posted February 10, 2010 labdien te tada lieta uzkodeju kodu bet , rada tukšu lapu kas nepareiz, k0 lai dara ? phpmyadmin screen : pats kods : <?php include("includes/connect.php"); if(is_numeric($_GET['id'])) { $id = intval($_GET['id']); $query = "SELECT * FROM users WHERE id = '$id'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result) or die(mysql_error()); echo "Username:"; echo $row['username']; echo "<br />"; echo "Your password:"; echo $row['password']; echo "<br />"; echo "Your Avatar:"; echo $row['avatar']; echo "<br />"; echo "Your Group"; echo $row['group']; } ?> Iepriekš paldies ! Ja Nezini Tad Neposto ! xD Quote Link to comment Share on other sites More sharing options...
2easy Posted February 10, 2010 Report Share Posted February 10, 2010 (edited) padod ?id=fees EDIT: oops, dari tā, kā EdgarsA teica :D Edited February 10, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 10, 2010 Report Share Posted February 10, 2010 :) pameigini atvert to pasu lapu liekot mainigo - ?id=1 Quote Link to comment Share on other sites More sharing options...
FT3 Posted February 10, 2010 Author Report Share Posted February 10, 2010 man nevj lai butu tip lapa cita , man vjg lai izvaditu datus uz dot0 lapu ;/ Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 10, 2010 Report Share Posted February 10, 2010 tu nesaprati :) tev ir tak prieksa viss rakstits if(is_numeric($_GET['id'])){ ... } uztaisi if(is_numeric($_GET['id'])) { .. }else{ echo "Nav ievadits id numurs"; } Quote Link to comment Share on other sites More sharing options...
FT3 Posted February 10, 2010 Author Report Share Posted February 10, 2010 da ne neta ;/ Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 10, 2010 Report Share Posted February 10, 2010 nepatik, neraksti - viss es nenaku saja tema. Quote Link to comment Share on other sites More sharing options...
FT3 Posted February 10, 2010 Author Report Share Posted February 10, 2010 EdgarsA sorry , bet tu droš vien nesaprati k0 es vel0s ;/ Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted February 10, 2010 Report Share Posted February 10, 2010 tu izteicies - ka redzi baltu lapu. bet ka tu kautko ieraudzisi ja tu nepadod id? jo, if(..id..){ tavs kods } sakot raksti adrese arii id ?id=1 tu saki ka ne ta. bet ja tu neieraksti ?id=1 kas ir attiecinams uz if(..id..) { saturs kuru radis ja bus ievadits id } tad tu neko neredzi , jo tev nav else statementa. Quote Link to comment Share on other sites More sharing options...
FT3 Posted February 10, 2010 Author Report Share Posted February 10, 2010 sorry bet man nesaprast ;/ Quote Link to comment Share on other sites More sharing options...
2easy Posted February 10, 2010 Report Share Posted February 10, 2010 (edited) kā tad varēji uzrakstīt to kodu? bet kā lietot, nesaproti... :D uzkodeju kodu bet , rada tukšu lapu vai tiešām esi pārliecināts, ka tu to kodēji? Edited February 10, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted February 10, 2010 Report Share Posted February 10, 2010 Uz kaadu adresi tu ej, kad tev raada tukshu lapu? (vnk copy/paste no address bar) Quote Link to comment Share on other sites More sharing options...
briedis Posted February 10, 2010 Report Share Posted February 10, 2010 Uz kaadu adresi tu ej, kad tev raada tukshu lapu? (vnk copy/paste no address bar) Reāli tu nesaprati? OP tak teica - ja nezini, tad neposto XD Quote Link to comment Share on other sites More sharing options...
FT3 Posted February 10, 2010 Author Report Share Posted February 10, 2010 nya sk ... Quote Link to comment Share on other sites More sharing options...
2easy Posted February 10, 2010 Report Share Posted February 10, 2010 lol, briedim +1 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.