<a href="whatsapp://send?text=message">ссылка</a>
Opening whatsapp://send?text= followed by the text to send, will open WhatsApp, allow the user to choose a contact, and pre-fill the input field with the specified text.
section {
position: relative;
}
section::after {
background: url(bla.png) center bottom;
botton: 0;
height: NNpx;
left: 0;
position: absolute;
right: 0;
width: 100%;
}
$headers= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
mail($to, $subject, $message, $headers);
@app-themed-default: #1bbae1;
@app-themed-dark-default: #394263;
@app-themed-night: #888888;
@app-themed-dark-night: #333333;
@app-themed-amethyst: #af64cc;
@app-themed-dark-amethyst: #583a63;
@app-themed-modern: #46b7bf;
@app-themed-dark-modern: #3b3f40;
@app-themed-autumn: #e67e22;
@app-themed-dark-autumn: #4a392b;
@app-themed-flatie: #1ec1b8;
@app-themed-dark-flatie: #32323a;
@app-themed-spring: #27ae60;
@app-themed-dark-spring: #344a3d;
@app-themed-fancy: #d9416c;
@app-themed-dark-fancy: #352b4e;
@app-themed-fire: #e74c3c;
@app-themed-dark-fire: #4a2e2b;
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
try {
$dbh = new PDO("mysql:host=$host;dbname='название_базы'", 'имя_пользователя', 'пароль');
} catch(PDOException $e) {
echo "Нет соединения с базой данных";
}
$user_id = 'id_нужной_записи';
$user = $dbh->prepare("SELECT name FROM users WHERE id = :user_id");
$user->execute(array('user_id' => $user_id))->fetch(PDO::FETCH_OB);
if($user) echo $user->name;
else echo 'Пользователь не найден.'