Article View: pl.comp.lang.php
Article #1766Re: Losowy rekord...
From: Marcin Nowak
Date: Thu, 30 Aug 2001 16:05
Date: Thu, 30 Aug 2001 16:05
10 lines
1088 bytes
1088 bytes
Averne wrote: > Jak w PHP wybrac losowo rekord z konkretnej tabeli w bazie danych MySQL ? > > > select * from nazwa_tabeli order by random limit 1 ^^^ tutaj nigdy nie wiem czy to random czy random() czy randomize musisz poprobowac...
Technical Details
Message-ID:
<3B8E645D.40103@korba.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mailReferences:
<9ml9u0$9eh$1@news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail From: Marcin Nowak <nowy@korba.pl> Newsgroups: pl.comp.lang.php Subject: Re: Losowy rekord... Date: Thu, 30 Aug 2001 18:05:49 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 11 Message-ID: <3B8E645D.40103@korba.pl> References: <9ml9u0$9eh$1@news.tpi.pl> NNTP-Posting-Host: 213.134.149.226 Mime-Version: 1.0 X-Trace: news2.tpi.pl 999187403 30889 213.134.149.226 (30 Aug 2001 16:03:23 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Thu, 30 Aug 2001 16:03:23 +0000 (UTC) X-Accept-Language: pl, en-us User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit