Ver Mensaje Individual
  #14 (permalink)  
Antiguo 06/09/2008, 12:34
AJDC
 
Fecha de Ingreso: agosto-2003
Mensajes: 324
Antigüedad: 20 años, 8 meses
Puntos: 1
Respuesta: Error en código que no consigo resolver

Y aquí la que manda los datos ...
Código HTML:
<?php include ("seguridadadmin.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<link href="css/estilo.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<script language="JavaScript" src ="funcionesjs/js.js"> </script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Canal Corporativo</title></head>

<body>

<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" background="imagenes/fondopagina.gif">
  <tr valign="top">
    <td height="600"><table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr valign="middle">
          <td width="230" height="110"><div align="center"><img src="imagenes/logosic.gif" width="208" height="87" /></div></td>
          <td height="110">&nbsp;</td>
          <td width="150" height="110"><div align="center"><img src="imagenes/logotrocadero.png" alt="" width="122" height="78" /></div></td>
        </tr>
      </table>
      	<table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr valign="top">
          <td height="480"><table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr valign="bottom">
					<td width="125"  height="30" class="TablaZonaActual">Administraci&oacute;n</td>
					<td width="200" class="TablaZonaDescriptiva">Usuarios SIC</td>
					<td  height="30" class="TablaDatoUsuario"><?php 
		echo $_SESSION["usuario"];
		?>&nbsp;&nbsp;</td>
				</tr>
			</table>
          	<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr valign="top">
					<td width="125" class="TablaMenu"><table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td>&nbsp;</td>
							</tr>
							<tr>
							<td width="3"></td>
								<td><a href="admindex.php" target="_self" class="menun">Usuarios</a></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><a href="usuarios/usuariossici.php" target="_self" class="menun">Nuevo</a></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><br /></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td>&nbsp;</td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><br /></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><a href="salir.php" class="menun">Salir</a></td>
							</tr>
							<tr>
								<td width="3"></td>
								<td><br /></td>
							</tr>
					</table></td>
					<td width="20" class="TablaSeparacion"><br /></td>
					<td class="TablaContenidoCentral"><p>Listado de los usuarios registrados en SIC:</p>
							<p>
								<?php
   include("conex.php");
   //$link=Conectarse();
   $result=mysql_query("select * from usuariossic",$link);
	?>
							</p>
						<p><span class="TextoTitulos">Usuarios</span> <br />
							</p>
						<table border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td width="200" class="TablaResultadosCabecera">Nombre&nbsp;</td>
									<td width="100" class="TablaResultadosCabecera">&nbsp;</td>
									<?php      
  			 while($row = mysql_fetch_array($result)) {
    		  printf("<tr><td>&nbsp;%s</td><td><a href=\"./usuarios/usuariossicm.php?UsuarioID=%s\">Editar</a></td></tr>", $row["UsuarioNombre"], $row["UsuarioID"]);
   }
   
   mysql_free_result($result);
   mysql_close($link);   
?>
								</tr>
							</table>
						<br />
							<br /></td>
				</tr>
			</table></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="TablaCopyRight">&copy;Trocadero</td>
  </tr>
</table>

      
    </td>
  </tr>
</table>

<p class="Estilo1">
  </table>
</p>

</body>
</html> 
Gracias