Ver Mensaje Individual
  #24 (permalink)  
Antiguo 24/11/2015, 13:06
edgaralcalaserra
 
Fecha de Ingreso: octubre-2015
Ubicación: ciudad juarez
Mensajes: 90
Antigüedad: 8 años, 7 meses
Puntos: 1
Respuesta: consulta con where

señores
ahora tengo otro problema al hacer la consulta solo me da una linea

no me da todos los datos

Código &quot:
Ver original
  1. ;
  2. //$dato = $_POST['dato'];
  3. //$inicio = $_POST['inicio'];
  4. //$final = $_POST['final'];
  5.  
  6. $query=mysql_query ("SELECT * FROM info WHERE schedule ='s750000'");
  7. $qye=mysql_query ("SELECT * FROM embobinado WHERE schedule ='s750000'");
  8. $qyes=mysql_query ("SELECT * FROM corecoil WHERE schedule ='s750000'");
  9. $qes=mysql_query ("SELECT * FROM preliminar WHERE schedule ='s750000'");
  10. $qesl=mysql_query ("SELECT * FROM oven WHERE schedule ='s750000'");
  11. $qesls=mysql_query ("SELECT * FROM final WHERE schedule ='s750000'");
  12. $qeslls=mysql_query ("SELECT * FROM empaque WHERE schedule ='s750000'");
  13.  
  14.  
  15. ?>
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  17. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml">
  19. <body><!-Vamos a crear una tabla que será impresa en el archivo excel->
  20.  
  21. <!-creamos la tabla de el reporte con border 1 y los títulos->
  22. <table width="641" border="1">
  23. <tr>
  24.  
  25. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>suffix</strong></th>
  26. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Order</strong></th>
  27. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Item</strong></th>
  28. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>CO</strong></th>
  29. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Responsable</strong></th>
  30. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Estatus Embobinado</strong></th>
  31. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Fecha Embobinado</strong></th>
  32. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Estatus Core Coil</strong></th>
  33. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Fecha Core Coil</strong></th>
  34. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Estatus Preliminar</strong></th>
  35. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Fecha Preliminar</strong></th>
  36. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Estatus Oven</strong></th>
  37. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Fecha Oven</strong></th>
  38. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Estatus Final</strong></th>
  39. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Fecha Final</strong></th>
  40. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Estatus Empaque</strong></th>
  41. <th width="50%" style="background-color:#006; text-align:center; color:#FFF"><strong>Fecha Empaque</strong></th>
  42. </tr>
  43. <?php
  44. // Un proceso repetitivo para imprimir cada uno de los registros.
  45.  
  46. $row = mysql_fetch_array($query);
  47. $raw = mysql_fetch_array($qye);
  48. $rew = mysql_fetch_array($qyes);
  49. $riw = mysql_fetch_array($qes);
  50. $ruw = mysql_fetch_array($qesl);
  51. $ruws = mysql_fetch_array($qesls);
  52. $ruwo = mysql_fetch_array($qeslls);
  53.  
  54. echo
  55. "<tr>
  56. <td bgcolor=\"#ededed\" align=\"center\">$row[suffix]</td>
  57. <td bgcolor=\"#ededed\" align=\"center\">$row[order]</td>
  58. <td bgcolor=\"#ededed\" align=\"center\">$row[item]</td>
  59. <td bgcolor=\"#ededed\" align=\"center\">$row[co]</td>
  60. <td bgcolor=\"#ededed\" align=\"center\">$row[responsible]</td>
  61. <td bgcolor=\"#ededed\" align=\"center\">$raw[statusemb]</td>
  62. <td bgcolor=\"#ededed\" align=\"center\">$raw[fechaemb]</td>
  63. <td bgcolor=\"#ededed\" align=\"center\">$rew[statuscore]</td>
  64. <td bgcolor=\"#ededed\" align=\"center\">$rew[fechacore]</td>
  65. <td bgcolor=\"#ededed\" align=\"center\">$riw[statuspre]</td>
  66. <td bgcolor=\"#ededed\" align=\"center\">$riw[fechapre]</td>
  67. <td bgcolor=\"#ededed\" align=\"center\">$ruw[statusoven]</td>
  68. <td bgcolor=\"#ededed\" align=\"center\">$ruw[fechaoven]</td>
  69. <td bgcolor=\"#ededed\" align=\"center\">$ruws[statusfinal]</td>
  70. <td bgcolor=\"#ededed\" align=\"center\">$ruws[fechafinal]</td>
  71. <td bgcolor=\"#ededed\" align=\"center\">$ruwo[statusemp]</td>
  72. <td bgcolor=\"#ededed\" align=\"center\">$ruwo[fechaemp]</td>
  73. </tr>";
  74.  
  75. ?>
  76. </table>
  77. </table>
  78. </body>
  79. </html>]