News: When asking for support, it helps us and you, if you read the Posting Guidelines

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

August 21, 2019, 07:37:38 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3751
  • Latest: tom888
Stats
  • Total Posts: 188690
  • Total Topics: 20745
  • Online Today: 102
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 95
Total: 95

Author Topic: Help with code  (Read 5010 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>';