ashais13 Posted February 23, 2008 Report Share Posted February 23, 2008 (edited) Kaads vareetu luudzu iedot Shaadu vai liidziigu generatora kodu... Mekleeju pa hostscripts nekko lidzigu neatradu. :( Tikei mans ģenerators paredzeets citiem meekiem.. Edited February 23, 2008 by ashais13 Link to comment Share on other sites More sharing options...
Kavacky Posted February 23, 2008 Report Share Posted February 23, 2008 Baigi sarežģīti uztaisīt, ne? Link to comment Share on other sites More sharing options...
andrisp Posted February 23, 2008 Report Share Posted February 23, 2008 Tur no predefineeta masiiva vai datubaazes randomaa vienkaarshi tiek njemts aaraa. Ja db: SELECT * FROM ORDER BY RAND() LIMIT 1 Ja masiivs: $masiivs = array('lala', 'blabla', 'desa'); echo $masiivs[rand(0, count($masiivs))] Link to comment Share on other sites More sharing options...
blackhalt Posted February 23, 2008 Report Share Posted February 23, 2008 $sql = "SELECT quote FROM tablename ORDER BY RAND() LIMIT 1"; $result = mysql_query($sql); $line = mysql_result($result,0); http://www.faqts.com/knowledge_base/view.phtml/aid/12325 Link to comment Share on other sites More sharing options...
test2 Posted February 26, 2008 Report Share Posted February 26, 2008 atvainojos par 'ne pa tēmu' nu lab ne pa problēmu, bet tie komentāru tekstiņi vnk pamatīgi nogāž no krēsla mani un manu brāli, nezinu cik gan cilvēkam jābūt aprobežotam, lai ko tādu ģenerētu shit... one of the most RANDOM: "tu man patīc!" Link to comment Share on other sites More sharing options...
Recommended Posts