I want to insert the mysql data into the meta tags' content. but when i do it, the server just shows a white page. In my opinion, my code should be working but there's an error that i don't know about.
I am writing my code in the header.php and it is included in all files. But, i only have a file that want to send data to meta tags.
Here's my code.
<?php 
$query = "SELECT * FROM tbl_new WHERE id='$nid'";
$rs = $db->select($query);
while($row = $rs->fetch()){
?>
  <meta property="og:type" content="website">
  <meta property="og:title" content="<?php echo $row['title]; ?>">
  <meta property="og:description" content="<?php echo $row['body']; ?>">
  <meta property="og:url" content="***">
  <meta property="og:image" content="">
  <meta property="og:site_name" content="">
  <meta property="og:app_id" content="012345678910">
<?php } ?>
 
    