let data = new FormData();
data.append('file', thi.image);
axios.post('/file', data)
.then(function(res) {
console.log(res);
});
if ($params[1] == 'channel') {
$method = 'channel_id';
} elseif ($params[1] == 'user') {
$method = 'user';
} else {
$method = 'user';
}
$url = "https://www.youtube.com/feeds/videos.xml?{$method}={$name}";
<media:community>
function get_from_db($name){
$stx = $pdo->prepare("SELECT {$name} FROM reg WHERE login=:login AND password=:passwd");
$stx->bindParam(':login', $login);
$stx->bindParam(':passwd',$passwd);
$stx->execute();
return $stx->fetchColumn();
}
$user_id = get_from_db('user_id');
$count = get_from_db('COUNT(*)')
$fill = mysqli_query($connect, "INSERT INTO users (id,tel,email,login,password) VALUES ('','$tel','$email','$login','$password')");
echo "<div style='color:green; font-family: 'Lobster', cursive;'><p style='margin:0; display:inline-block;'>Добро пожаловать,</p>".$login."<p style='margin:0;display:inline-block;'>!</p></div>";
}
}elseif ($fetch != 0) {
echo "<div style='color:red; font-family: 'Lobster', cursive;'>"."<p style='margin:0;'>Пользователь с таким именем уже существует!
</p>"."</div>";
}