Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/12/2015, 04:08
bquisper
 
Fecha de Ingreso: noviembre-2015
Mensajes: 5
Antigüedad: 8 años, 5 meses
Puntos: 0
Respuesta: Mostrar resumen o detalle de un ticket

Cita:
Iniciado por pilucho Ver Mensaje
Prueba Asi:

Codigo Busqueda: search_lst.php
Código PHP:
Ver original
  1. <?php
  2.     error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR);
  3.     header('Content-Type: text/html; charset=ISO-8859-1');
  4.     require_once("conexion.php");
  5.     $lst=$_GET['enviar'];
  6.     if (isset($lst)) {
  7.         $query="SELECT T.idTicket, U.numero, T.tipoProb, T.estado, T.archivo FROM ticket T, unidadejecutora U
  8.                    WHERE T.idUnidadEjecutora = U.idUnidadEjecutora and T.idTicket='$lst' and T.idTicket LIKE '$lst%' ";
  9.         $result = mysql_query($query);
  10.         $registro=mysql_fetch_array($result);
  11.         if ($registro != 0) {
  12.             echo "
  13.                <tr>
  14.                <td class='center'>
  15.                 ";
  16.                 ?>
  17.                 <a href="detalle_problema_recep.php?id=<?php echo $registro['idTicket'];?>"><?php echo $registro['idTicket'];?></a>
  18.                 <?
  19.                 echo "</td>
  20.                <td class='center'>".$registro['numero']."</td>
  21.                <td class='center'>".$registro['tipoProb']."</td>
  22.                <td class='center'>".$registro['estado']."</td>
  23.                <td class='center'>
  24.                    <div class='file-field input-field material-icons'>
  25.                        <input type='file'>attach_file ".$registro['archivo']."
  26.                    </div>
  27.                </td>
  28.                </tr>
  29.                ";
  30.         }else {
  31.             echo '
  32.            <script>
  33.            alert("Datos no encontrados, vuelva a intenarlo")
  34.            </script> ';
  35.  
  36.         }
  37.     }
  38. ?>
Buenas Estimado, tu aporte me fue de mucha utilidad ya que pude solucionar mi problema. Gracias por la ayuda