我想在HTML元描述中包含文章描述(来自数据库)

I have html site, where I include articles from database (menu is created with php code from database and after it loads articles under html code), when I click on menu and site shows article I want to include Title and Description of that article in meta tags of site (for SEO purposes), I get title from database with the code below, but if I write same for description meta description is empty.

<title><?if($nadpis !=NULL) { echo $nadpis; }else{echo "Home";}?></title>

"nadpis" is title in database.