Primero de todo, mil gracias por tu tiempo, agradezco enormemente tu ayuda, Segundo, acabo de darme cuenta que en la
Pagina 2 me falto la parte del WHERE completarla, mil perdones, causa las múltiples pruebas que estaba realizando, este seria el codigo completo de la
Pagina 2<?php$conexion= mysqli_connect("localhost: 3306", "root", "", "taxicorp")or die("Uppsss!!... ALgo ha ido mal...");?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Modificar datos</title>
</head>
<style>
@font-face{
font-family: 'RobotoMono';
src: url(Tipografias/RobotoMono.ttf);
font-style: normal;
}
table{
width: 765px; height: 20px;
border: ridge thick aliceblue;
background-color: antiquewhite;
table-layout: inherit;
}
#estatic{
position: absolute;
left: 185px; top: 85px;
}
h3{
color: aliceblue;
}
</style>
<body>
<?php if(!isset($_POST['boton_enviar'])){ $conexion= mysqli_connect("localhost: 3306", "root", "", "taxicorp")or die("Uppsss!!... ALgo ha ido mal..."); $sql="SELECT * FROM taxis WHERE Matricula='".$_POST['taxi_radio']."'"; $exec= mysqli_query($conexion, $sql); $registro= mysqli_fetch_row($exec); ?>
<div id="estatic">
<form action="mod_dat_tax2.php" method="post">
<table border="1">
<tr>
<td colspan="2" align="center"><b>Matricula: <font color="#BB0B0E">
<?php echo($_POST['taxi_radio']);?>
</font></b></td>
</tr>
<tr>
<td><b>Modelo:</b></td>
<td><input type="text" name="Modelo" size="40" value="<?php echo($registro[1]);?>
"></td>
</tr>
<tr>
<td><b>Nombre y Apellidos:</b></td>
<td>
<input type="text" name="Nombre" value="<?php echo($registro[2]);?>
">
<br>
<input type="text" name="Apellidos" size="35" value="<?php echo($registro[3]);?>
"></td>
</tr>
<tr>
<td><b>Libre:</b></td>
<td><input type="checkbox" name="libre" <?php if($registro[4]) echo("checked");?>
></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="boton_enviar" value="Modificar Datos"></td>
</tr>
</table>
</form>
<a href="mod_dat_tax.php" style="float: right; font: 14px bold RobotoMono; color: aliceblue">Volver</a>
</div>
<?php }else{ $update ="UPDATE taxis SET Modelo='".$_POST['Modelo']."',"."Nombre='".$_POST['Nombre']."',"; $update.="Apellidos='".$_POST['Apellidos']."',Ocupado="; if (isset($_POST['libre'])) $update.="true"; else $update.="false"; $update.=" WHERE Matricula='".$_POST['taxi_radio']."'"; // Sentencia SQL $exec= mysqli_query($conexion, $update); echo("<br>"); // Registro en la tabla taxis if(!$exec) echo("<br><br><center><h3>Datos Modificados!!</h3></center><br> <a href='mod_dat_tax.php'><center><input type='button' name='button' value='Volver'></center></a>"); else echo("<br><br><center><h3>Error!!</h3></center><br> <a href='mod_dat_tax.php'><center><input type='button' name='button' value='Volver'></center></a>"); mysqli_close($conexion); } ?>
</body>
</html>Tercero el error que me da es este
Notice: Undefined index: taxi_radio in C:\xampp\htdocs\Proyecto_final\mod_dat_tax2.php on line 89
Error!!
y por último cuarto, el fin es modificar los datos de Modelo, Nombre, Apelilidos y Ocupado (SI o No) de la matricula del vehiculo y no se que sentencia SQL adoptar.