The problem is that when you update the form data, you do it correctly, but the main menu and the navigation bar stops working. I have it like this ...
<tbody >
<?php
while($fila=sqlsrv_fetch_array($consultaVendedores)){
$numVende=$fila['no_vende'];
$nom=$fila['nombre'];
$rfc=$fila['rfc'];
?>
<tr id="fila" onclick="alerta(<?php echo $numVende;?>);" >
<th id="no_vende" ><?php echo $numVende; ?></th>
<th id="nombre"><?php echo $nom; ?></th>
<th id="rfc"><?php echo $rfc; ?></th>
</tr>
<?php
}
?>
</tbody>
This is the fragment of the table in which I send a function called alerta
, and I send the seller number.
function alerta(id){
$("#info").load('datosVende.php?id='+id);
}
This is the function in which it sends to load the page datosVende.php
in which I only update the div
with id=info
, making the query, but now in this way ...
$NumeroVende= $_GET['id'];
<?php
/* -----PRIMER REGISTRO----- */
$consultaPrimerVende="SELECT * FROM aavende where no_vende=$NumeroVende";
$queryPrimerVende=sqlsrv_query($conn,$consultaPrimerVende);
$fila=sqlsrv_fetch_array($queryPrimerVende);
$no_vende=$fila['no_vende'];
$nombre=$fila['nombre'];
$rfc=$fila['rfc'];
$direccion1=$fila['direccion1'];
$direccion2=$fila['direccion2'];
$ciudad=$fila['ciudad'];
$estado=$fila['estado'];
$tel1=$fila['telefono1'];
$tel2=$fila['telefono2'];
?>
Everything else I leave as it is in catalogoVendedores.php
, but I do not work the main menu and the navigation bar ... I already tried putting the code of the main menu and the navigation bar in the datosVende.php
, but even then it does not work.
What is marked with blue boxes is what does not work when updating the seller's data.