• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Shuffle !

Started by megzz,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

megzzTopic starter

Hey
Does anyone knows how i can make a shuffle button for randomly shuffling between public videos ...

Regards
  •  

Marius P.

Very simple! shuffle.php

<?php require_once('load.php' );
$video = $db->get_row("SELECT id ,title from ".DB_PREFIX."videos where pub > 0 order by rand()");
if($video) {
redirect(video_url($video->id , $video->title));
}
?>
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)