Buscador:
Código PHP:
<html>
<head>
<title>MODIFICACION CLIENTES</title>
</head>
<body>
<div align="center">
<table border="0" width="84%" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td width="671"> </td>
<td width="118"> </td>
</tr>
<tr>
<td> </td>
<td width="671">
<table border="0" width="100%" id="table2">
<tr>
<td height="59">
<p align="center"><b><font face="Arial" size="4">INGRESAR
PLANILLA</font></b></td>
</tr>
<tr>
<td><form action="modif_clientes2.php" method="post">
<font size="2" face="Arial">Ingresar Planillas:
</font><font face="Arial">
<input type="text" name="id"></font><font size="2" face="Arial"> </font>
<font face="Arial">
<input type="submit" value="BUSCAR"></font><font size="2" face="Arial">
</font>
</form></td>
</tr>
</table>
<p> </td>
<td width="118"> </td>
</tr>
<tr>
<td> </td>
<td width="671"> </td>
<td width="118"> </td>
</tr>
</table>
</div>
</body>
</html>
Código PHP:
<?php
$conexion=mysql_connect("localhost","root","123456") or
die("Problemas en la conexion");
mysql_select_db("sedemat",$conexion) or
die("Problemas en la selección de la base de datos");
$registros=mysql_query("select * from vehiculoj
where id='$_REQUEST[id]'",$conexion) or
die("Problemas en el select:".mysql_error());
if ($reg=mysql_fetch_array($registros))
{
}
else
echo "Numero no Registrado";
?>
<html>
<head>
<title>MODIFICACION CLIENTES</title>
</head>
<body>
<div align="center">
<table border="0" width="84%" id="table3" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td width="671"></td>
<td width="118"> </td>
</tr>
<tr>
<td>
</td>
<td width="671">
<table border="0" width="100%" id="table4">
<tr>
<td height="59">
<p align="center"><b><font face="Arial" size="4">INGRESAR
PATENTE</font></b></td>
</tr>
<tr>
<td>
<form action="modif_clientes3.php" method="POST" name="loginForm">
<table border="0" width="100%" id="table5" cellspacing="1">
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<table border="0" width="103%" id="table6">
<tr>
<td colspan="2">
<p align="center">
</td>
</tr>
<tr>
<td width="11%"><b><font face="Verdana" size="2">PLANILLA:</font></b></td>
<td width="74%">
<font size="2" face="Verdana" color="#FF0000">
<?php echo $reg['id']?></font></td>
</tr>
<tr>
<td width="11%"><b><font size="2" face="Verdana">NOMBRE:</font></b></td>
<td width="74%">
<font size="2" face="Verdana" color="#FF0000">
<?php echo $reg['firstname']?></font></td>
</tr>
<tr>
<td width="11%"><b><font face="Verdana" size="2">CEDULA:</font></b></td>
<td width="74%">
<font size="2" face="Verdana" color="#FF0000">
<?php echo $reg['cedularif']?></font></td>
</tr>
<tr>
<td width="11%"><b><font size="2" face="Verdana">PLACA:</font></b></td>
<td width="74%">
<font size="2" face="Verdana" color="#FF0000">
<?php echo $reg['placa']?></font></td>
</tr>
<tr>
<td width="11%"><b><font size="2" face="Verdana">TOTAL:</font></b></td>
<td width="74%">
<font size="2" face="Verdana" color="#FF0000">
<?php echo $reg['total']?></font></td>
</tr>
<tr>
<td width="11%"> </td>
<td width="74%">
<font size="2" face="Verdana" color="#FF0000">
<?php echo $reg['proce']?></font></td>
</tr>
<tr>
<td width="85%" colspan="2">
<p align="center">
<?php include('calcum.php'); ?></td>
</tr>
<tr>
<td width="11%"> </td>
<td width="74%">
<input type="text" name="proce" value="<?php echo $reg['proce'] ?>" size="1" style="border:1px solid #FFFFFF; color: #FFFFFF"><input type="text" name="puesto" value="<?php echo $reg['puesto'] ?>" size="1" style="border:1px solid #FFFFFF; color: #FFFFFF"><input type="text" name="totalviejo" value="<?php echo $reg['total'] ?>" size="1" style="border:1px solid #FFFFFF; color: #FFFFFF"><input type="submit" value="MODIFICAR">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
<td width="118"> </td>
</tr>
<tr>
<td> </td>
<td width="671"> </td>
<td width="118"> </td>
</tr>
</table>
</div>
</body>
</html>
Código PHP:
<html>
<head>
<title>MODIFICACION CLIENTES</title>
</head>
<body>
<h1>MODIFICACIÓN DE CLIENTES POR NOMBRE</h1>
<?php
$conexion=mysql_connect("localhost","root","123456") or
die("Problemas en la conexion");
mysql_select_db("sedemat",$conexion) or
die("Problemas en la selección de la base de datos");
$registros=mysql_query("update vehiculoj
set total='$_REQUEST[totalnuevo]', puesto='$_REQUEST[puestonuevo]', proce='$_REQUEST[procenuevo]' where total='$_REQUEST[totalviejo]'",$conexion) or
die("Problemas en el select:".mysql_error());
echo "La Patente fue ingresada con exito";
?>
</body>
<input type="submit" value="VOLVER" onclick = "self.location.href = 'inicio'" />
</html>