Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 3rd, 2012  |  syntax: None  |  size: 1.23 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 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){
  2.  
  3.     $sup_id = 2;
  4.     $query = "select nombre from rutas_sup where id = '$sup_id'";
  5.     $result = mysql_query($query);
  6.     $nombre_sup = mysql_fetch_row($result);
  7.   } 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){
  8.  
  9.         $sup_id = 1;
  10.         $query = "select nombre from rutas_sup where id = '$sup_id'";
  11.         $result = mysql_query($query);
  12.         $nombre_sup = mysql_fetch_row($result);
  13.   } else if($_POST['ruta'] = 19 or $_POST['ruta'] = 20 or $_POST['ruta'] = 21){
  14.  
  15.         $sup_id = 3;
  16.         $query = "select nombre from rutas_sup where id = '$sup_id'";
  17.         $result = mysql_query($query);
  18.         $nombre_sup = mysql_fetch_row($result);
  19.   } else($_POST['ruta'] = 16 or $_POST['ruta'] = 17 or $_POST['ruta'] = 18 or $_POST['ruta'] = 21){
  20.  
  21.         $sup_id = 4;
  22.         $query = "select nombre from rutas_sup where id = '$sup_id'";
  23.         $result = mysql_query($query);
  24.         $nombre_sup = mysql_fetch_row($result);
  25.   }