foxsk8 Posted December 28, 2006 Report Share Posted December 28, 2006 Kā var uztaisīt lai no foruma lapā var redzēt pēdējos postus, un topicus! Link to comment Share on other sites More sharing options...
bubu Posted December 28, 2006 Report Share Posted December 28, 2006 Ja datus glabā kādā SQL datubāzē, tad izselektē no topiku/postu tabulas ierakstus sakārtotus pēc ievietošanas datuma dilstošā secībā, skaitu limitē ar vajadzīgo skaitli - tb cik gribi pēdējos ierakstus redzēt lapā. Link to comment Share on other sites More sharing options...
foxsk8 Posted December 28, 2006 Author Report Share Posted December 28, 2006 Neka nesapratu no taa ko tu uzrakstiji, kaut ka ar php scriptu to dabut gatavu varetu, un ja jaa, kads butu tas scripts! Link to comment Share on other sites More sharing options...
Stopp Posted December 28, 2006 Report Share Posted December 28, 2006 Ja nesaprati, tad tev vēl mazliet jāpamācas, lai varētu sākt ar PHP/SQL strādāt. Link to comment Share on other sites More sharing options...
savejais Posted December 29, 2006 Report Share Posted December 29, 2006 Nopietni sakot, jautājumu nesaredzu. Tikai izsaukumus! :D Link to comment Share on other sites More sharing options...
SkyD Posted December 30, 2006 Report Share Posted December 30, 2006 mysql_query("SELECT * FROM tabula ORDER BY id DESC, LIMIT 10"); Link to comment Share on other sites More sharing options...
Val Posted December 30, 2006 Report Share Posted December 30, 2006 Tas viņam nederēs, jo nekāds ctrl+c ctrl+v nesanāks ;) Link to comment Share on other sites More sharing options...
Recommended Posts