$auth = $_GET['auth']; if($auth != '1'){ echo("You are not authorized to view this information."); exit(); } $dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1'); if (!$dbcnx) { echo("
ecosmartinc.com" .
"
Sorry. Problems connecting to Data Base " .
"
Please try again later.");
exit();
}
mysql_select_db('ecosmar_products', $dbcnx);
if (! @mysql_select_db('ecosmar_products') ) {
echo("
ecosmartinc.com" .
"
Sorry. Problems communicating with Data Base " .
"
Please try again later.");
exit();
}
$result = mysql_query("SELECT id,productname,type,o_country,o_city,o_code,custom_value,handling,currency,weight_lb,length_in,width_in,height_in,fixed_price,minimum,percent_of_sale,up_date FROM shipping");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit();
}
echo("id,productname,type,o_country,o_city,o_code,custom_value,handling,currency,weight_lb,length_in,width_in,height_in,fixed_price,minimum,percent_of_sale,up_date
");
while($row = mysql_fetch_array($result)) {
echo("$row[0],$row[1],$row[2],$row[3],$row[4],$row[5],$row[6],$row[7],$row[8],$row[9],$row[10],$row[11],$row[12],$row[13],$row[14],$row[15]
");}
?>