Help with the request.
$sql = "SELECT `first_name`, `uidvk`, `rot` FROM `rotation` WHERE `first_name` = 'Леонид'" $Query = mysqli_query($CONNECT, $sql); $array = array(); while($Row = mysqli_fetch_assoc($Query) ){ $array[] = $Row; } Here we have an array of Leonids.
I need to update everyone Leonid.
$sql = "UPDATE `rotation` SET `date` = NOW(), `trah` = '$_SESSION[USER_UIDVK]' WHERE ... "; // Тут нужно как-то сделать, чтобы апдейт // сделался по Леонидам из массива. mysqli_query($CONNECT, $sql); Something like: WHERE first_name = 'Leonid' - not satisfied. For the problem is that the orientation was for people from the array. I do not know yet how to do it.
idall selected entries with leonids and then makeUPDATEusingIN? - Alexey Shimanskyuidvk? - splash58