Llama Posted June 5, 2009 Report Share Posted June 5, 2009 (edited) Es veletos kip lai no charekter topa izvelk 5 labakos pec lvl un parada to man weba ! Kads nevar uztaisiti tadu scriptu! Ps. Var jau ari no mysql nolasiti ! Jo man serveris stav uz mysql ;) Edited June 5, 2009 by Llama Quote Link to comment Share on other sites More sharing options...
SamS Posted June 5, 2009 Report Share Posted June 5, 2009 Tads man liekas bija jau te.. :) Vajag pameklet.. ja atradishu iedoshu! Quote Link to comment Share on other sites More sharing options...
anonīms Posted June 8, 2009 Report Share Posted June 8, 2009 Llama, ja esi gatavs maksāt, tad noteikti kāds uztaisīs. Ja nevēlies maksāt tad prasi padomus nevis pašu kodu. izmanto select un while select character from table order by lvl desc limit 5 Quote Link to comment Share on other sites More sharing options...
Mikijs Posted June 8, 2009 Report Share Posted June 8, 2009 besi ara.. 1. Kas ir charakters ? 2. Kas ir lvl - limenis ? 3. par ko vispar ir runa ? 4. kur tu glaba datus ? 5. ja turi sql`a tad izmanto kodu ko dod anoniims. Quote Link to comment Share on other sites More sharing options...
goma smile Posted June 9, 2009 Report Share Posted June 9, 2009 (edited) $res = "SELECT * FROM charters ORDER by lvl LIMIT 5"; $sql=mysql_query($res); while($row = mysql_fetch_array($sql)) { echo "".$row['charter_name']." ".$row['charter_lvl']."<br />"; } Būtu jadarbojas perfekti :) Edited June 9, 2009 by goma smile Quote Link to comment Share on other sites More sharing options...
marcis Posted June 9, 2009 Report Share Posted June 9, 2009 goma smile, tu izvilksi 5 sliktākos spēlētājus vai kas viņi tur ir. Quote Link to comment Share on other sites More sharing options...
Kemito Posted June 25, 2009 Report Share Posted June 25, 2009 (edited) $res = "SELECT * FROM charters ORDER by lvl LIMIT 5"; $sql=mysql_query($res); while($row = mysql_fetch_array($sql)) { echo "".$row['charter_name']." ".$row['charter_lvl']."<br />"; } Būtu jadarbojas perfekti :) Tie ir sliktākie :D Ja nemaldos, augšā jau rakstīja par labākajiem 5iem! DESC LIMIT 5 nevis LIMIT 5 :) $sql = mysql_query("SELECT * FROM tabula ORDER by lvl DESC LIMIT 5"); while($data = mysql_fetch_aray($sql)) { echo ''.$data['niks'].' ar '.$data['lvl'].''; } Respektīvi šis izvelk tavus 5us labākos :D ja neproti to izmantot tad ver vaļā maku un samaksā kādam lai uztaisa tev :D ammm.... man darbojas 99,9 + 0,1% ;) Edited June 26, 2009 by Kemito 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.