TwitterFacebook

Aircraft

[php] $connection = mysql_connect(‘localhost’, ‘baloogan_cdb’, ‘cdbcdbcdbcdb’);
mysql_select_db(‘baloogan_cwdb’);
$query = “SELECT ID,Name,YearCommissioned FROM DataAircraft ORDER BY Name , YearCommissioned “; //You don’t need a ; like you do in SQL
$result = mysql_query($query);
echo “[table]”;
echo “[tr][td][strong]ID[/strong][/td][td][strong]Name[/strong][/td][td][strong]Year[/strong][/td][/tr]”;
while($row = mysql_fetch_array($result)){
echo “[tr][td]” . $row[‘ID’] . “[/td][td]” . $row[‘Name’] . “[/td][td]” . $row[‘YearCommissioned’] . “[/td][/tr]”;
}
echo “[/table]”;
mysql_close();
[/php]