// show data
$sql = "select * from shipment where smactive=1 and smdomestic='".$_SESSION["domestic"]."' order by smname " ;
$result = mysql_query($sql)or die ("error");
$num = mysql_num_rows($result);
for ($i=1;$i<=$num;$i++){
$row = mysql_fetch_array($result);
$link = @mysql_connect($host,$username,$password) or die("Can't Connect Mysql");
mysql_select_db($dbname,$link) or die("Not Found $dbname");
mysql_query("SET character_set_connection=utf8");
// ****************************************************
function alertphp($word,$url){
die("<script>
alert('$word');
window.location='$url';
</script>");
}
// ****************************************************
function alertphp2($word){
die("<script>
alert('$word');
history.back();
</script>");
}
//*******************************************************
function findshipprice($country,$shipment,$domestic){
if ($domestic == BASE){
// in country
$sql = "select * from country where country_id='".BASE."'";
$query = mysql_query($sql);
$row = mysql_fetch_array($query);