[insert_php]

//****** Pray for the world thingy
//Just a random test of my skillz
$config[‘db’] = array(
‘host’ => ‘localhost’,
‘username’ => ‘mudmin_pray’,
‘password’ => ‘pray@Ministry’,
‘dbname’ => ‘mudmin_pray’
);

$rand = rand(0,192);

$db = new PDO(‘mysql:host=’ . $config[‘db’][‘host’] . ‘;dbname=’ .$config[‘db’][‘dbname’],$config[‘db’][‘username’],$config[‘db’][‘password’] );
$query = $db->query(“SELECT _country . country FROM _country”);
$single = $query->fetchAll (PDO::FETCH_ASSOC);
echo $single[$rand][‘country’];

//echo ‘<pre>’, print_r($rows, true), ‘</pre>’;
//original
//echo $single[$rand][‘country’];

?>

 

[/insert_php]