Ayuda tengo este codigo pero no me actualiza la BD y tampoco me marca error de antemano muchas gracias...
form_mod.php
Código PHP:
Ver original<?php
require('conexion.php');
$id=$_GET['id'];
$query="SELECT pisdte, piord, picnme, pidesc, piprod, pioqty, priority, entdate, responsible, comments FROM cutandcapam WHERE id='$id'";
$resultado=$mysqli->query($query);
$row=$resultado->fetch_assoc();
?>
Código HTML:
Ver original<!--<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width"> <title>...::: Bienvenido a Industrias Seco de Tijuana :::...
</title> <link rel="icon" type="image/png" href="../imagenes/favicon.png" /> <!-- Teléfono -->
<link href="telefono.css" rel="stylesheet" type="text/css" media="only screen and (max-width:320px)"> <!-- Tableta -->
<link href="tablet.css" rel="stylesheet" type="text/css" media="only screen and (min-width:321px) and (max-width:768px)"> <!-- Escritorio -->
<link href="escritorio.css" rel="stylesheet" type="text/css" media="only screen and (min-width:769px)"> #apDiv1 {
position: absolute;
left: 33px;
top: 176px;
width: 433px;
height: 20px;
z-index: 1;
}
.gridContainer.clearfix form table {
font-weight: bold;
text-align: center;
font-size: 10px;
}
.gridContainer.clearfix form p {
text-align: center;
}
.gridContainer.clearfix div table thead tr td {
text-align: left;
}
.gridContainer.clearfix div table thead tr td {
font-weight: bold;
}
.gridContainer.clearfix div table thead tr td {
font-size: 11px;
background-color: #CCC;
font-family: Tahoma, Geneva, sans-serif;
font-style: normal;
font-weight: bold;
}
<body background="../imagenes/filters.jpg">
<div class="gridContainer clearfix"> <div class="top" id="Admin">Bienvenido:
<?php echo "" .$_SESSION['s_username'];
?> |
<a href="logout_admin.php" class="top">Cerrar Sesion
</a> </div> <div id="Logo"><a href="javascript:history.go(-1)"><br> <img src="http://www.forosdelweb.com/f18/imagenes/logo_flanders.png" alt="Home"></a></div> <div class="programacion" id="Info">Modificar Programa de Cut and Cap PM
</div> <form name="modificar_usuario" method="POST" action="mod_cutandcapam.php">
<table width="74%" border=1 align="left" cellpadding="0" cellspacing="0"> <td width="3%"><b>PISDTE
</b></td> <td width="3%"><b>PIORD
</b></td> <td width="15%">PICNME
</td> <td width="15%">PIDESC
</td> <td width="3%">PIPROD
</td> <td width="3%">PIOQTY
</td> <td width="11%">PRIORITY
</td> <td width="4%">ENTDATE
</td> <td width="11%">RESPONSIBLE
</td> <td width="32%">COMMENTS
</td> <input name="pisdte" type="text" class="PISDTE" id="pisdte" value="<?php echo $row['pisdte']; ?>" size="8" maxlength="8">
</td> <input name="piord" type="text" class="PISDTE" id="piord" value="<?php echo $row['piord']; ?>" size="8" maxlength="8">
</td> <input name="picnme" type="text" class="PISDTE" id="picnme" value="<?php echo $row['picnme']; ?>" size="40" maxlength="40">
</td> <input name="pidesc" type="text" class="PISDTE" id="pidesc" value="<?php echo $row['pidesc']; ?>" size="40" maxlength="40">
</td> <input name="piprod" type="text" class="PISDTE" id="piprod" value="<?php echo $row['piprod']; ?>" size="8" maxlength="8">
</td> <input name="pioqty" type="text" class="PISDTE" id="pioqty" value="<?php echo $row['pioqty']; ?>" size="8" maxlength="8">
</td> <input name="priority" type="text" class="PISDTE" id="priority" value="<?php echo $row['priority']; ?>" size="30" maxlength="30">
</td> <input name="entdate" type="text" class="PISDTE" id="entdate" value="<?php echo $row['entdate']; ?>" size="8" maxlength="8">
</td> <input name="responsible" type="text" class="PISDTE" id="responsible" value="<?php echo $row['responsible']; ?>" size="30" maxlength="30">
</td> <input name="comments" type="text" class="PISDTE" id="comments" value="<?php echo $row['comments']; ?>" size="40" maxlength="200">
</td>
<input type="submit" name="agregar" id="agregar" value="Modificar Programa">