require("ddbb.php");
$connection = @mysql_connect("$host","$user","$dbpass");
if($connection == false) { echo "[Error: " . mysql_error() . "]"; return; }
$db = mysql_select_db("$dbname",$connection);
if($db == false) { echo "[Error: " . mysql_error() . "]"; return; }
$strquery = "SELECT * FROM contenidos WHERE id = 7;";
$results = mysql_query($strquery, $connection);
if($results == false) { echo "[Error: " . mysql_error() . "]"; return; }
$numregs = mysql_num_rows($results);
$contenido = mysql_result($results, 0, "contenido");
echo $contenido;
?>