Good I'm doing the order editing and I bring the data through GET. There is a field in the table called Iduser
which is the user who has placed the order.
Then to edit the order I get a select with all the users that I have in the BD.
<select id="select2-1" value="" class="form-control selectSegundo" name="select2-1" style="min-height: 38px;">
<option value="0">Seleciona un cliente</option>
<?php
$resultisa = $mysqli->query("SELECT * FROM Usuarios");
mysqli_set_charset("utf8");
while($resia = $resultisa->fetch_array()) {
?>
<option value="<?php echo $resia['IdUsuario'] ?>"><?php echo $resia['Nombre'] ?></option>
<?php } ?>
</select>
I would like this user to select the user that comes through GET, but with the possibility of changing the user for another one.
Any ideas ??? Thanks