04/10/2011, 09:59
|
| | | Fecha de Ingreso: julio-2011 Ubicación: Coahuila
Mensajes: 320
Antigüedad: 13 años, 7 meses Puntos: 8 | |
phpmysql no imprimir registros iguales hola a todos
tengo un problema de logica
tengo una tabla en mysql
ejemplo de datos
aa
b
n
aa
b
n
lo que quiero es que los imprima de esta manera
aa
b
n
me podrian ayudar el codigo e este
$mysqlcapp = "select * from produccion where numero_de_empleado = '$OPERADORR' and fecha = '$BUSFECHA' ORDER BY operacion ASC ";
$resultadocappn = mysql_query($mysqlcapp);
$NUMERORENGLONEScapp = mysql_num_rows($resultadocappn);
while($row_tt = mysql_fetch_array($resultadocappn) ){
$OPP = $row_tt['operacion'];
$OPDES = $row_tt['operacion_descripcion'];
$NUMPARTE = $row_tt['numero_de_parte'];
$CC = $row_tt['cantidad'];
$HH = $row_tt['hrefectivas'];
echo' <table width="678" border="0">
<tr>
<td width="79" class="Estilo1"><div align="center">'.$OPP .'</div></td>
<td width="333" class="Estilo1"><div align="center">'.$OPDES .'</div></td>
<td width="130" class="Estilo1"><div align="center">'.$NUMPARTE.'</div></td>
<td width="65" class="Estilo1"><div align="center">'.$CC .'</div></td>
<td width="49" class="Estilo1"><div align="center">'.$HH.'</div></td>
</tr>
</table>';
} |