| |
 |
|
| |
include "../../global.php";
//$connection = mysql_connect(OUR_HOST,OUR_USER,OUR_PWD); echo "Line 4: $connection ";
//mysql_select_db(OUR_DB,$connection); echo "Line 5 ";
if (!($connection = @ mysql_connect(OUR_HOST,OUR_USER,OUR_PWD))){
echo "Line 4: ";
show_error();
}
if (! @ mysql_select_db(OUR_DB,$connection)) {
echo "Line 8 : ";
show_error();
}
// Populate Category list
$query="SELECT DISTINCT CategoryName,CategoryID FROM Categories order by CategoryName";
if (!($result = mysql_query($query, $connection)))
{
echo "Line 14 : ";
show_error();
}
while(!($row=mysql_fetch_array($result))==0)
{
$CategoryList=$CategoryList."";
}
// Populate Region List
$query = "SELECT CountryName,CountryID FROM Countries where CountryActive = 0 order by CountryName";
if(!($result = mysql_query($query, $connection))) {
echo "Line 34 : ";
show_error();
}
while(!($row=mysql_fetch_array($result))==0)
{
$RegionList=$RegionList."";
}
mysql_close($connection);
unset($row, $result, $query, $connection);
?>
|
|
|
| |
|