Resulta que en la BD tengo dos datos de la misma persona, y solo me muestra un dato quiera me ayudaran a ver en que esta mi error....
//Este es el combobox que jala el nombre de los usuarios desde una tabla:
Código PHP:
Ver original
<?php if (!$CONEXION) { die("p class='Estilo1' align='center'>LO SIENTO, PERO NO HA PODIDO CONECTARSE A MYSQL: </p>" . mysql_error()); } else{ echo "<select name=ART>"; echo "<option selected='' value=''> [ Seleccione ] </option>"; echo "<option value=".$ARTICULO["id_nom"].">".$ARTICULO["nombre"]."</option>"; } echo "</select>"; } else{ $ERROR_CONSULTA="NO SE PUEDEN MOSTRAR LOS PRODUCTOS DEBIDO AL SIGUIENTE ERROR: "; } } ?>
//En esta parte es donde me jalo los datos de la BD...
<input type="submit" name="ACEPTAR" value="Aceptar" />
</form>
Código PHP:
Ver original
<?php $ART=$_POST["ART"]; ("SELECT folio, fecha, hora, unidad, area, reporta, tel, ext, vpn, inventario, serie, ip, marca, modelo, dispositivo, falla, nombre, actividades FROM reporte, unidades, usuarios WHERE reporte.id_unidad=unidades.id_unidad AND reporte.id_nom=usuarios.id_nom AND reporte.id_nom=$ART"); echo "<table width='800' border='1' align='center'> <tr> <th width='90' scope='col'>FOLIO</th> <th width='66' scope='col'>FECHA</th> <th width='65' scope='col'>HORA</th> <th width='69' scope='col'>UNIDAD</th> <th width='90' scope='col'>AREA</th> <th width='66' scope='col'>REPORTA</th> <th width='65' scope='col'>TEL</th> <th width='69' scope='col'>EXT</th> <th width='90' scope='col'>VPN</th> <th width='66' scope='col'>INVENTARIO</th> <th width='65' scope='col'>SERIE</th> <th width='69' scope='col'>IP</th> <th width='90' scope='col'>MARCA</th> <th width='66' scope='col'>MODELO</th> <th width='65' scope='col'>DISPOSITIVO</th> <th width='69' scope='col'>FALLA</th> <th width='66' scope='col'>NOMBRE</th> <th width='90' scope='col'>ACTIVIDADES</th> </tr> <tr> <td>".$fila['folio']."</td> <td>".$fila['fecha']."</td> <td>".$fila['hora']."</td> <td>".$fila['unidad']."</td> <td>".$fila['area']."</td> <td>".$fila['reporta']."</td> <td>".$fila['tel']."</td> <td>".$fila['ext']."</td> <td>".$fila['vpn']."</td> <td>".$fila['inventario']."</td> <td>".$fila['serie']."</td> <td>".$fila['ip']."</td> <td>".$fila['marca']."</td> <td>".$fila['modelo']."</td> <td>".$fila['dispositivo']."</td> <td>".$fila['falla']."</td> <td>".$fila['nombre']."</td> <td>".$fila['actividades']."</td> </tr> </table>"; } else{ echo "<div class='Estilo2' align='center'>No existe reporte</div>"; } } ?>
Bueno espero su pronta respuesa... muchas gracias!!!