TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 04:40:38 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,105
  • Total Topics: 21,213
  • Online today: 209
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 213
  • Total: 213

Help with code

Started by dkharp, November 06, 2010, 10:59:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dkharp

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>';