Ver Mensaje Individual
  #9 (permalink)  
Antiguo 29/09/2006, 17:22
Avatar de Nova
Nova
 
Fecha de Ingreso: enero-2003
Ubicación: Hyo
Mensajes: 832
Antigüedad: 22 años
Puntos: 1
Weno aki tengo el ejemplo completo, pero hay un pekeño inconveniente NO MUESTRA LOS DATOSSS
Código PHP:
<?
$db 
mysql_connect("localhost","root","") or die ("Unable to connect to MySQL server.");
$datos=mysql_select_db ("proyectodb",$db);
$consulta"SELECT * from usuario WHERE usuario='Admin'";
$result =mysql_query($consulta,$db) or die(header ("No se pudo realizar la consulta"));
while (
$row mysql_fetch_array($result)) { 
        
$codver1=$row["codver"];
        echo 
"Hola a todos    $codver1";
        
$nombre1=$row["nombre"];
        
$apepat1=$row["apepat"];
        
$apemat1=$row["apemat"];
        
$dni1=$row["dni"];
        
$mail1=$row["email"];
        
$telefo1$row["telefo"];
        
$dire1=$row["dire"];
        
$depa1=$row["depa"];
        
$provin=$row["provin"];
        
$cuidad1=$row["cuidad"];
        
$sexo1$row["sexo"];
        
$insti1=$row["insti"];
        
$cargo1=$row["cargo"];
        
$como1=$row["como"];        

}
?>
<html>
    <head><title>Formulario de Inscripci&oacute;n de Usuario</title>
    <style type="text/css">
<!--
.Estilo3 {color: #FF0000}
body {
    background-image: url(images/f-ins.jpg);
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
.Estilo8 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.Estilo10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
.Estilo12 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; }
.Estilo15 {
    color: #FF0000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
}
-->
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
    
    <body bgcolor="#ffffff" style="background-attachment: fixed" onLoad="size()">
    <div align="center">
      <table width="956" border="0">
    <form action="" method="post" name="form1">
      <tr>
        <th scope="col"><span class="Estilo10">INSCRIPCI&Oacute;N DE USUARIO</span></th>
      </tr>
      <tr>
        <th width="950" scope="col">        <table width="947" border="0"  align="left">
                  
        <tr>
              <th colspan="2" scope="col"><span class="Estilo12">
              </span></th>
            </tr>
            <tr>
              <th colspan="2" scope="col"><div align="left" class="Estilo12">
              INFORMACI&Oacute;N PERSONAL</div></th>
            </tr>
            <tr>
              <td width="326"><strong class="Estilo8">N Verificaci&oacute;n:</strong></td>
              <td><input name="veri" type="text"   readonly="true" value= <?php echo $codver1 ?>>
              
              <input name="numveri" type="hidden" id="numveri" value="valor"></td>
            </tr>
            <tr>
              <td class="Estilo8">Direccion de Correo Eletr&oacute;nico:</td>
              <td><span class="Estilo3">
                <input name="email" type="text" size="50" value= <?php echo $email1 ?> > 
                <?php echo "Valor de PHP $email1" ?>
</span></td>
            </tr>
            <tr>
              <td class="Estilo8">Sexo:</td>
              <td>                <p>
                  <label>
                  <input name="sexo" type="radio" value="hombre" <?php if ( $sexo1== 'hombre') echo 'checked'?>>Hombre</label>
                  <input name="sexo" type="radio" value="mujer"  <?php if ( $sexo1== 'mujer') echo 'checked'?>><label>Mujer</label>
                  <br>
               </p></td>
            </tr>
            <tr>
              <td class="Estilo8"><strong>Nombres</strong>:<strong><span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="nombre" type="text" id="nombre"  size="50" value= <?php echo $nombre1 ?> >
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Apellido Paterno:<span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="apepat" type="text"  size="35" value= <?php echo $apepat1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Apellidos Materno: <span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="apemat" type="text" size="35" value = <?php echo $apemat1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">DNI</strong>:<strong><span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="dni" type="text" size="8" value= <?php echo $dni1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Tel&eacute;fonos:</strong></td>
              <td><span class="Estilo3">
                <input name="telefono" type="text" id="telefono" size="35" value = <?php echo $telefo1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Direcci&oacute;n</strong>:<strong><span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="direccion" type="text" id="direccion" size="50" value = <?php echo $dire1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Cuidad</strong>:<strong><span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="cuidad" type="text"  size="30" value = <?php echo $cuidad1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Provincia</strong>:<strong><span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="provincia" type="text" id="provincia"  size="30" value = <?php echo $provin1 ?>>
              </span></td>
            </tr>
            <tr>
              <td><strong class="Estilo8">Departamento</strong>:<strong><span class="Estilo3">*</span></strong></td>
              <td><span class="Estilo3">
                <input name="departamento" type="text" id="departamento" size="30" value = <?php echo $depa1 ?>>
              </span></td>
            </tr>
            <tr>
              <td colspan="2"><strong class="Estilo8">INFORMACI&Oacute;N DE LA INSTITUCI&Oacute;N <span class="Estilo15"></span></strong><span class="Estilo3">
              </span></td>
            </tr>
            <tr>
              <td><p>Nombre de la Insituci&oacute;n proveniente:</p>              </td>
              <td><span class="Estilo3">
                <input name="institucion" type="text" id="institucion" size="50" value = <?php echo $insti1 ?>>
</span></td>
            </tr>
            <tr>
              <td>Cargo:</td>
              <td><span class="Estilo3">
                <input name="cargo" type="text" id="cargo" size="50" value = <?php echo $cargo1 ?>>
              </span></td>
            </tr>
            <tr>
              <td colspan="2">OTROS</td>
            </tr>
            <tr>
              <td>Como se entero del Curso : </td>
              <td><span class="Estilo3">
                <input name="como" type="text" id="como" size="50" value = <?php echo $como ?>>
              </span></td>
            </tr>
                 
  </table></th></tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td><p class="Estilo8">
            <input name="submit" type="submit" value="Actualizar" align="right" >
            

 </p>        </td>
      </tr>
    </form>
        </table>
    </div>
    </body>
</html>
K raro... con una prueba que hice, mostrando solo algunos datos del usuario me sale pero cuando quiero mostrar todo ni rastro de los datos, por favor si puedieran ayudarme.
__________________
http://about.me/jemano

Última edición por Nova; 29/09/2006 a las 17:30