>>> green = [[0.01775, 274903], [0.0177, 2767608], [0.01765, 1966445], [0.0176, 698199], [0.01755, 2853585], [0.0175, 944079], [0.01745, 2813977], [0.0174, 336701], [0.01735, 2118072], [0.0173, 975570]]
>>> max(green, key=lambda x: x[1])
[0.01755, 2853585]
if(trim($_POST['user_name']) && trim($_POST['user_email']) && trim($_POST['user_password']))
if($user_name && $user_email && $user_password)
spl_autoload_register(function ($className) {
$ds = DIRECTORY_SEPARATOR;
$className = str_replace('\\', $ds, $className);
$filename = __DIR__ . "{$ds}..{$ds}database{$ds}$className.php";
require($filename);
});
автозагрузчик тоже кладется в общий подключаемый файл.<? if($errors !== ''): ?>
<?=htmlspecialchars($errors) ?><br><br>
<? endif ?>
<input type="text" name="user_name" value="<?= htmlspecialchars($user_name ?? '') ?>">
$statement->execute($params);
Для кого специально этот функционал создатели PDO писали? [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION];
и пока оставить так. А потом, со временем, добавить к проекту централизованный вывод сообщения "что-то пошло не так"error: can't find Rust compiler
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain