Este es el query que funciona y me retorna la tarifa:
Código PHP:
$query ="SELECT `2` FROM `inposdom`.`jos_inpos_ems` WHERE peso_kg >= '0.3' ";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
echo $row[2];
Código PHP:
function get_tarifa ($kilos, $zona) {
$query ="SELECT `2` FROM `inposdom`.`jos_inpos_ems` WHERE peso_kg >= '0.3' ";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
echo $row[2];
$tarifa = $row[2]
}
Gracias!