News: April 7th, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.3! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

August 24, 2019, 06:10:24 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3751
  • Latest: tom888
Stats
  • Total Posts: 188700
  • Total Topics: 20746
  • Online Today: 86
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 61
Total: 61

Author Topic: Help with code  (Read 5013 times)

0 Members and 1 Guest are viewing this topic.

Offline dkharp

  • Jr. Member
  • **
  • Posts: 8
    • Missouri Gun Owners
Help with code
« on: November 06, 2010, 04:59:03 PM »
I am using this code for aeva: How do I change it to random?? Please help:

Quote
$start = 0;
$max_number_of_pics = 4;
$sort = 'm.time_added DESC';

echo '<div style="width: 100%; overflow: hidden;">';

global $sourcedir;
require_once($sourcedir . '/Aeva-Subs.php');   
echo aeva_listItems(aeva_getMediaItems($start, $max_number_of_pics,$sort, 'm.id_media'), true, '', 4);

echo'</div>';