try:
function find_type($conn,$thistype){
    switch($thistype){
        case "a":
          $this_type = 3;
          $how_row = 2;
          break;
       case "b":
          $this_type = 4;
          $how_row = 5;
          break;
       ........
     }
  $t=array($this_type,$how_row);
  return $t;   
  }