Каждое направление имеет числовой идентификатор — 0, 1, 2 и 4 соответственно.
(prev + 1) % 4 == cur
- по часовой $ find /usr/bin/ -group shadow | xargs ls -l
-rwxr-sr-x 1 root shadow 72184 ноя 24 2022 /usr/bin/chage
-rwxr-sr-x 1 root shadow 23136 ноя 24 2022 /usr/bin/expiry
$ find /usr/sbin/ -group shadow | xargs ls -l
-rwxr-sr-x 1 root shadow 22680 фев 2 2023 /usr/sbin/pam_extrausers_chkpwd
-rwxr-sr-x 1 root shadow 26776 фев 2 2023 /usr/sbin/unix_chkpwd
- $update_statement = mysqli_prepare($connection, "UPDATE posts SET post_views_count = post_views_count + 1 WHERE post_id = ?");
- mysqli_stmt_bind_param($update_statement, "i", $the_post_id);
+ $update_statement = mysqli_prepare($connection, "UPDATE posts SET post_views_count = post_views_count + 1 WHERE seo_slug = ?");
+ mysqli_stmt_bind_param($update_statement, "s", $the_post_id);
...
- mysqli_stmt_bind_param($stmt1, "i", $the_post_id);
+ mysqli_stmt_bind_param($stmt1, "s", $the_post_id);
...
- mysqli_stmt_bind_param($stmt2, "is", $the_post_id, $published);
+ mysqli_stmt_bind_param($stmt2, "ss", $the_post_id, $published);