session_start(); $actual_link = 'http://' . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; require("backend/includes/connect.php"); if( is_numeric( $_GET['id'] ) ) $id=$_GET['id']; else die(); $query = "SELECT * FROM contenido WHERE status=1 and tipo='1' and id=$id ORDER BY orden ASC "; bd_consultar($query,$consulta); if ( mysql_num_rows($consulta) == 0 ) header('location: posts.html'); $line=mysql_fetch_array($consulta); $description = str_replace('"', "'", $line['cuerpo'] ); //substr( , 0, 30) $description = substr( $description , 0, 120); ?>