Ver Mensaje Individual
  #19 (permalink)  
Antiguo 30/09/2010, 14:21
Avatar de mexbale
mexbale
 
Fecha de Ingreso: septiembre-2010
Ubicación: Iztapalapa
Mensajes: 146
Antigüedad: 13 años, 7 meses
Puntos: 1
Respuesta: probrema con index

TABULAR:
<?php
//initialize the session
if (!isset($_SESSION)) {
session_start();
}
?>
<?php
require_once('localhost.php');
if($localhost)
{
if(mysql_select_db($database_localhost ,$localhost));
{
$conectado=true;
}
}
$sql="select nombre, num_cap from usuarios where nombre='".$_SESSION['MM_Username']."'";
$result=mysql_query($sql,$localhost) or die(" horrorex en SQLL ") ;
$cantidadderen=mysql_num_rows($result);
$row = mysql_fetch_array($result, MYSQL_NUM);
?>
<?php
if($localhost)
{
if(mysql_select_db($database_localhost ,$localhost));
{
$conectado=true;
}
}
$nombres= explode (" ", $_SESSION['MM_Username']);
$sql="select nombre, num_cap from usuarios where nombre='".$_SESSION['MM_Username']."'";
$result=mysql_query($sql,$localhost) or die(" horrorex en SQLL ") ;
$cantidadderen=mysql_num_rows($result);
$row1 = mysql_fetch_array($result, MYSQL_NUM);
$_SESSION['nombre']=$row1[0];
$_SESSION['num_cap']=$row1[1];
?>
<!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">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<style type="text/css">
style1 {
color: #0000FF;
font-weight: bold;
}
style2 {color: #0000FF}
-->
</style>
<style type="text/css">
<!--
.Estilo1 {color: #999999}
-->
</style>
</head>

<body bgcolor="#CCFF00">
<form name="formulario" id="formulario" action="ECHO.PHP" method="post" >
<h1><center>
<strong>Esto es una prueba para insertar el nombre y clave de capturista y recaptura</strong>
</center>
</h1>
<table width="950" align="center">
<tr>
<td style="border-bottom:1px dashed #A60C00"><strong>2. FOLIOS</strong></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">FOLIO DE LA VIVIENDA</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="FOLIO" type="text" id="FOLIO" onkeyup = "this.value=this.value.toUpperCase();if (this.value.length == this.getAttribute('maxlength')){CVE_ENT.focus()}" maxlength="9" onblur="FAjax(this.value)" onkeypress="return folio(event)" />
</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right" id="elDiv">?????</div></td>
</tr>
</table>
<table width="950" align="center">
<tr>
<td colspan="2" style="border-bottom:1px dashed #A60C00"><strong>1. IDENTIFICACION GEOGRAFICA</strong></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">ENTIDAD FEDERATIVA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_ENT" type="text" id="CVE_ENT" size="2" maxlength="2" onkeypress="return tabular(event, this, this.maxLength)" />
</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">MUNICIPIO O DELEGACION</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_MUN" type="text" id="CVE_MUN" size="3" maxlength="3" onkeypress="return tabular(event, this, this.maxLength)" />
</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">LOCALIDAD</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_LOC" type="text" id="CVE_LOC" size="4" maxlength="4" onkeypress="return tabular(event, this, this.maxLength)" />
</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">CLAVE DE AGEB</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="CVE_AGEB" type="text" id="CVE_AGEB" size="4" maxlength="4" onkeypress="return tabular(event, this, this.maxLength)" />
</div></td>
</tr>
<tr>
<td style="border-bottom:1px dashed #A60C00"><div align="right">MANZANA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="MZA" type="text" id="MZA" size="3" maxlength="3" onkeypress="return tabular(event, this, this.maxLength)" />
</div></td>
</tr>
<tr bgcolor="#0000FF">
<td style="border-bottom:1px dashed #A60C00"><div align="right" class="Estilo1">CLAVE DE CAPTURISTA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="num_cap" type="text" id="num_cap" size="2" maxlength="2" readonly="true" style="background:none" value="<? echo $_SESSION['num_cap'];?>" />
</div></td>
</tr>
<tr bgcolor="#0000FF">
<td style="border-bottom:1px dashed #A60C00"><div align="right" class="Estilo1">NOMBRE DE CAPTURISTA</div></td>
<td style="border-bottom:1px dashed #A60C00"><div align="right">
<input name="nombre" type="text" id="nombre" size="30" maxlength="50" readonly="true" style="background:none" value="<? echo $_SESSION['nombre'];?>" />
</div></td>
</tr>
<tr>
<td colspan="2" style="border-bottom:1px dashed #A60C00"><div align="center">
<input type="submit" name="Guardar" value="Guardar" />
</div></td>
</tr>
</table>
</form>
</body>
</html>