
Untitled
By: a guest on
May 3rd, 2012 | syntax:
None | size: 1.23 KB | hits: 14 | expires: Never
if($_POST['ruta'] = 2 or $_POST['ruta'] = 3 or $_POST['ruta'] = 4 or $_POST['ruta'] = 5 or $_POST['ruta'] = 6 or $_POST['ruta'] = 7 or $_POST['ruta'] = 15){
$sup_id = 2;
$query = "select nombre from rutas_sup where id = '$sup_id'";
$result = mysql_query($query);
$nombre_sup = mysql_fetch_row($result);
} else if($_POST['ruta'] = 8 or $_POST['ruta'] = 9 or $_POST['ruta'] = 10 or $_POST['ruta'] = 11 or $_POST['ruta'] = 12 or $_POST['ruta'] = 13 or $_POST['ruta'] = 14 or $_POST['ruta'] = 22){
$sup_id = 1;
$query = "select nombre from rutas_sup where id = '$sup_id'";
$result = mysql_query($query);
$nombre_sup = mysql_fetch_row($result);
} else if($_POST['ruta'] = 19 or $_POST['ruta'] = 20 or $_POST['ruta'] = 21){
$sup_id = 3;
$query = "select nombre from rutas_sup where id = '$sup_id'";
$result = mysql_query($query);
$nombre_sup = mysql_fetch_row($result);
} else($_POST['ruta'] = 16 or $_POST['ruta'] = 17 or $_POST['ruta'] = 18 or $_POST['ruta'] = 21){
$sup_id = 4;
$query = "select nombre from rutas_sup where id = '$sup_id'";
$result = mysql_query($query);
$nombre_sup = mysql_fetch_row($result);
}