Hi all,
I have the following
$result = mysql_query("SELECT vmplay_videos.id, vmplay_videos.artistid, vmplay_artists.website, vmplay_artists.artistfirst, vmplay_artists.artistlast, vmplay_videos.songname FROM vmplay_artists, vmplay_videos WHERE vmplay_artists.id = vmplay_videos.artistid and videoactive = 'yes' and indepic = 'yes' ORDER BY RAND( NOW( ) ) LIMIT 1 ");
while($row = mysql_fetch_array($result)){
$indename = $row["artistfirst"];
$indelastname = $row["artistlast"];
$indesongname = $row["songname"];
$indeaid = $row["artistid"];
$indevid = $row["id"];
$indewebsite = $row["website"];
}
I use this at the top of my page and use echos to display the results.
I was wondering whether or not I could get the information for three entries and then use echos to display the information for three records.
I.E in table one the information for record one is displayed and then information for record two is displayed in table two.
I want to use the same query because its a random selector, I've tried using two different queries, however I receive the same results dupilicated because of the random.
Is there any help?
Dan