TwitterFacebook

Enum Operator Country

[php] $ID = 0;
$CDB = 0;
if(array_key_exists(‘EnumOperatorCountry_ID’, $GLOBALS)) $ID = $GLOBALS[‘EnumOperatorCountry_ID’];
if(array_key_exists(‘CommandDatabase’, $GLOBALS)) $CDB = $GLOBALS[‘CommandDatabase’];
if(array_key_exists(‘ID’, $_GET)) $ID = $_GET[‘ID’];
if(array_key_exists(‘CDB’, $_GET)) $CDB = $_GET[‘CDB’];
$connection = mysql_connect(‘localhost’, ‘baloogan_cdb’, ‘cdbcdbcdbcdb’);
if($CDB == 1){
mysql_select_db(‘baloogan_db3000’);
}
if($CDB == 2){
mysql_select_db(‘baloogan_cwdb’);
}
$query = “SELECT Description FROM EnumOperatorCountry WHERE ID = ” . $ID;
$result = mysql_query($query);
$row = mysql_fetch_array($result);
print($row[‘Description’]);
mysql_close();
[/php]