Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
- <meta http-equiv="refresh" content="10" />
- <title></title>
- </head>
- <body>
- <?php
- require('connect.php');
- require('functions.php');
- $query = "SELECT * FROM `feeds`";
- //takes all the feed that are declared
- $result = mysql_query($query);
- $data = array();
- while($output = mysql_fetch_assoc($result)) {
- $data[] = $output; // assigns feeds to an array called $data, one after the other, in they go!
- }
- $feed = randomchoice($data); // finds a random feed by calling the function
- //the value i want to pass is $feed['feed_url'],$feed['feed_name']
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment