TwitterFacebook

Weapons

[php] $connection = mysql_connect(‘localhost’, ‘baloogan_cdb’, ‘cdbcdbcdbcdb’);
mysql_select_db(‘baloogan_cwdb’);
$query = “SELECT ID,Name FROM DataWeapon ORDER BY Name”;
$result = mysql_query($query);
echo “[table]”;
echo “[tr][td][strong]ID[/strong][/td][td][strong]Name[/strong][/td][/tr]”;
while($row = mysql_fetch_array($result)){
echo “[tr][td]” . $row[‘ID’] . “[/td][td]” . $row[‘Name’] . “[/td][/tr]”;
}
echo “[/table]”;
mysql_close();
[/php]