Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/php -q
- <?
- // require '/var/lib/asterisk/agi-bin/phpagi.php';
- // $agi = new AGI();
- ob_start();
- $username="root";
- $password="xxxxxxx";
- $database="admessage";
- $host="localhost";
- mysql_connect($host,$username,$password);
- //# Select the database to use and error check
- @mysql_select_db($database) or die( "Unable to select database");
- $sql = "select* from message order by rand()";
- $query = mysql_query($sql);
- $data = mysql_fetch_array($query);
- mysql_close();
- //$agi->set_variable("admessage",$data['message']);
- ?>
- <?php echo $data['message'];?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement