site:qna.habr.com
if ($query != 404 AND $query != 403){
$query = $_GET['w'] ?? "";
if ($query != 404 AND $query != 403){
$query = "404";
}
include 'error.tpl';
<?php
$file = 'data.txt';
$data = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
echo $data[$_GET["times"]];
<?php
$file = 'data.txt';
if (isset($_POST['send'])) {
file_put_contents( $file, $data );
}
$data = file_get_contents( $file);
?>
<html>
<head>
</head>
<body>
<form action='/1.php' method='post'>
<textarea name="data"><?=$data?></textarea>
<input type="submit" name="send" >
</form>
</body>
</html>
1
22
2
$user = $db->prepared_query("SELECT * FROM users WHERE id = ?", [$id])->fetch();
$user = $db->select('*')->from('users')->where('id', $id);
$stmt = $mysqli->prepare("INSERT INTO `masters` (`id`, `email`, `password`, `name`, `login`, `phone_number`, `rating`,
`avatar`, `photo1`, `photo2`, `photo3`, `photo4`, `photo5`, `town`, `area`) VALUES (NULL, ?,
?,?,?,?, '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)");
$stmt->bind_param("sssss", $email, $password, $name, $login, $phone) ;
$stmt->execute();
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);