"select password from users_all where name='".$_SESSION['login']."'"
$_SESSION['password']
<?php
$array = [1,2,3,5465,67,76,8];
for($i=0; $i < count($array); $i++) {
echo "$array[$i] <br>";
};
DELETE FROM `records`
WHERE `id` in
(SELECT `id` FROM `records` WHERE `user_id` = ? ORDER BY `date` DESC LIMIT 1)