phpbar.de logo

Mailinglisten-Archive

[php] =?iso-8859-1?Q?AW:_=5Bphp=5D_Re:_=5Bphp=5D_wie_per_Zufall_Datens=E4tz?= =?iso-8859-1?Q?e_selektieren?=

[php] AW: [php] Re: [php] wie per Zufall Datensätz e selektieren

Marco Kaiser php_(at)_phpcenter.de
Tue, 9 Oct 2001 02:05:59 +0200


>SELECT * FROM hausbau WHERE
>id = $EG[(rand(0, $iX))] OR
>id = $EG[(rand(0, $iX))] OR
>id = $EG[(rand(0, $iX))] OR
>id = $EG[(rand(0, $iX))]

Hmm
SELECT * FROM table ORDER BY RAND() LIMIT 0,4
ist einfacher :)


Gruss Kaiser



php::bar PHP Wiki   -   Listenarchive