function db_connect(){
$user = 'i1057772_lessons';
$password = 'password';
$host = 'localhost';
$db = 'i1057772_sherdes';
$link = mysqli_connect($host, $user, $password, $db);
return $link;
}
function query(){
$sql = "SELECT id FROM `video_lessons` ";
$query = mysqli_query(db_connect(), $sql)
while($result = mysqli_fetch_assoc($query){
$row[] = $result;
}
}