ashais13 Posted February 23, 2008 Report 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
andrisp Posted February 23, 2008 Report 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))]
blackhalt Posted February 23, 2008 Report 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
test2 Posted February 26, 2008 Report 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!"
Recommended Posts