include("libreria/inc_inicio.php");
include("libreria/conexion_bd.php");
include("libreria/config_site.php");
$idcont = $_GET["idcont"];?>
if ($idcont != "") {
?>
$SQL = mysql_query("SELECT * FROM mhernandez_contenidos WHERE idcontenido = '".$idcont."' ") or die ("Fallo en la conexión");
while ($row = mysql_fetch_array($SQL)) {
?>
echo $row["texto"];
}
} else {
$SQL = mysql_query("SELECT * FROM mhernandez_contenidos WHERE ididioma = 'esp' AND idseccion = '5' ORDER BY idcontenido DESC ") or die ("Fallo en la conexión");
while ($row = mysql_fetch_array($SQL)) {
?>
" class="nada">
$texto_parcial = substr($row["texto"], 0, 150);
echo $texto_parcial."...[+]
";
}
}
include("libreria/inc_fin.php");
?>