Hola a todos como estan, e intentado hacerlo de muchas maneras pero ya me rindo nada me funciona tengo el siguiente script:
 
(es algo simple y torpe lo se jaja)    
Código PHP:
Ver original<?php
function dameURL(){
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
return $url;
}
?>
<!doctype html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <title>Keep Calm And</title>
    <meta property="og:type"                 content="image.other"> 
    <meta property="og:url"                  content="<?php echo dameURL(); ?>">
    <meta property="og:image"                content="http://i.imgur.com/tL00OCv.png">
    <meta property="og:title"                content="Keep Calm And... ">
    <meta property="og:description"          content="Crea tus Keep Calm, Gratis.!">
    <link rel="stylesheet" type="text/css" href="/recursos/css/estilos.css">
    <link rel="stylesheet" type="text/css" href="/recursos/css/botones.css">
    <script type="text/javascript" src="http://s7.addthis.com/js/300/addthis_widget.js#pubid=llajudavid2"></script>
    <script type="text/javascript">
      addthis.layers({
        'theme' : 'transparent',
        'share' : {
          'position' : 'left',
          'numPreferredServices' : 5,
        }   
      });
    </script>
    <style type="text/css">
        .btn2a {
        font-size: 25px;
        margin-top:10px;
        margin-left: 10px;
        height: 40px;
        position: absolute;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        transition: all 0.3s;
    }
    </style>
</head>
<body>
<a href='/inicio'><span class="btn2a btn-1 btn-1a">←</span></a>
<header>
    <span>^</span>
    <br>
    <h1>Keep<br>Calm</h1>
    <h2>And<br>
 
    <?php
    require_once('datos.php');
 
    $sql = "SELECT texto, cancion, fondo FROM usuarios WHERE id='".@$_GET['id']."'";
 
    if (! $result){
       echo "La consulta SQL contiene errores.".mysql_error();  
    }else {
 
 
 
                    echo "<p style='text-transform:capitalize;'>".$row[0].".</p>"; 
                    echo "<iframe id='ytplayer' type='text/html' width='0' height='0'src='https://www.youtube.com/embed/".$row[1]."?autoplay=1'frameborder='0' allowfullscreen></iframe><style>body{background: url(/".$row[2].");background-size: cover;}</style>";       
}
 
}else{echo "<br>Debes Insertar Una ID Valida.<style>body{background: url(/recursos/css/img/fondo.jpg);background-size: cover;}</style> ";}
 
}
 
?> 
 
    </h2>
</header>
 
    
</body>
</html>
  
Si ven tengo una conexión a la base de datos y abajo un while que imprime lo que hay, pero yo quiero que el registro texto se imprima en el <title></title> pero no quiero repetir toda la conexión para solo sacar ese dato, como lo ago? me avian dicho y con algo asi lo aria:    
Pero tampoco da, si me ayudan seria muy agradecido y espero haberme explicado bien.