Here:
Code:
<?php
require_once('./global.php');
$host = localhost;
$user = *****;
$dbp = *****;
$db = *****;
mysql_connect($host, $user, $dbp);
mysql_select_db($db);
$icao = mysql_query("
SELECT field7
FROM userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
$icao = mysql_fetch_aray($icao);
?>
<iframe width="100%" src="http://www.weathermeister.com/html/metar?idents=<?php echo $icao['field'7]; ?>"/>
If it is your vBulletin database, you can reduce it to this:
Code:
<?php
require_once('./global.php');
?>
<iframe width="100%" src="http://www.weathermeister.com/html/metar?idents=<?php echo $vbulletin->userinfo['field7']; ?>"/>