The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
So hi people,
I have a small question and very needed to be explained ![]() I want to randomly pick an id out of a table so I wrote this Code:
$allids = $DB_site->query("SELECT id FROM " . TABLE_PREFIX . "test"); $idarray = array(); while ($ids = $DB_site->fetch_array($allids)) { $idarray[] .= $ids['id']; } $id = array_rand($idarray); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|