Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/02/2011, 12:29
Tato
 
Fecha de Ingreso: agosto-2002
Ubicación: Capital Federal
Mensajes: 98
Antigüedad: 21 años, 8 meses
Puntos: 1
Codigo html y php en campo mysql

Hola a todos, estoy tratando de imprimir un campo text de mysql donde tengo guardado todo una página php. y se me corta.

Código guardado en mysql:
<?php require_once('Connections/cnx.php'); ?>

<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$hoy = date("Y-m-d");

mysql_select_db($database_pjn, $pjn);
$query_rsLicitaciones = "SELECT * FROM `info_publicada` WHERE `Nodo` = '36' AND `RubroID` = '75' AND ('".$hoy."' >= Vig_Desde and '".$hoy."' < Vig_Hasta) Order By Orden Desc";
$rsLicitaciones = mysql_query($query_rsLicitaciones, $pjn) or die(mysql_error());
$row_rsLicitaciones = mysql_fetch_assoc($rsLicitaciones);
$totalRows_rsLicitaciones = mysql_num_rows($rsLicitaciones);
?>
<?php
function smrFormatStr($var1) {
$cadena = $var1;
$cadena = str_replace( chr(13), "", $cadena );
$cadena = str_replace( chr(10) & chr(10), "</P><P>", $cadena);
$cadena = str_replace( chr(10), "<BR><BR>", $cadena );
return($cadena) ;
}
function tatoFecha($var1) {
list($year, $month, $day) = split('[/.-]', $var1);
$fecha = $day."-".$month."-".$year;
return($fecha);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>INTRANET - Poder Judicial de la Naci&oacute;n</title>
<link href="estilos.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="includes/tooltip/jquery.min.js"></script>
<script type="text/javascript" src="includes/tooltip/jqueryTooltip.js"></script>
<script src="includes/Scripts/swfobject_modified.js" type="text/javascript"></script>
<link href="includes/grilla.css" rel="stylesheet" type="text/css" />
<!--PopUp PDF-->
<script type="text/javascript" src="includes/lyteboxPDF/lytebox.js"></script>
<link rel="stylesheet" href="includes/lyteboxPDF/lytebox.css" type="text/css" media="screen" />
<!--Fin PopUp PDF-->

</head>
<body>
<div class="contenedor">
<!--
<div class="imagen-Left"><img src="imagenes/cm-logo.png" width="274" height="75" alt="Logo CM" /></div>
<div class="imagen-Right"><img src="imagenes/intranet.gif" width="166" height="75" alt="INTRANET" /></div>
-->
<?php require("includes/copete.php"); ?>
<div class="line">&nbsp;</div>
<?php include("includes/dropdown.php");?>
<?php include("includes/iconos.php");?>
<div class="bodyContenido">
<div class="contieneView">
<div class="tituloLink">Licitaciones</div>
<div class="col1">TIPO</div>
<div class="col2">NUMERO</div>
<div class="col3">DESCRIPCION</div>
<div class="col4">VER</div>
<?php do { ?>
<div class="colTipo" onmouseover="this.style.backgroundColor='#FC9';" onmouseout="this.style.backgroundColor='#FFC';"><? php echo $row_rsLicitaciones['Acto_Tipo']; ?></div>
<div class="colNro" onmouseover="this.style.backgroundColor='#FC9';" onmouseout="this.style.backgroundColor='#FFC';"><? php echo $row_rsLicitaciones['Acto_Nro']; ?>/<?php echo $row_rsLicitaciones['Acto_Ano']; ?></div>
<div class="colDesc" onmouseover="this.style.backgroundColor='#FC9';" onmouseout="this.style.backgroundColor='#FFC';" title="<?php echo $row_rsLicitaciones['Texto'];?>"><?php echo substr ($row_rsLicitaciones['Texto'], 0, 85)."...";?></div>
<div class="colVer" onmouseover="this.style.backgroundColor='#FC9';" onmouseout="this.style.backgroundColor='#FFC';"><a href="http://www.pjn.gov.ar/02_Central/ViewDoc.Asp?doc=<?php echo $row_rsLicitaciones['Codigo']; ?>&CI=intranet" rel="lyteframe" rev="width: 700px; height: 500px;">VER</a></div>
<?php } while ($row_rsLicitaciones = mysql_fetch_assoc($rsLicitaciones)); ?>
</div>
<?php if ($row_rsContenido['nuevo']==1){ ?>
<?php }?>
<div class="infografia"></div>
</div>
<div class="body-Acceso"><?php include("includes/accesos.php"); ?></div>
<div class="line">&nbsp;</div>
<!--Divide Body - MULTIMEDIA-->
<!--Fin Divide Body - MULTIMEDIA-->
<?php include("includes/footer/footer.php"); ?>
<div class="footer">Sitio optimizado para Internet Explorer - Firefox - Resolución 1024 - 768</div>
</div>
</body>
</html>
<?php
mysql_free_result($rsLicitaciones);
?>

y se corta aca:
= Vig_Desde and '".$hoy."' < Vig_Hasta) Order By Orden Desc"; $rsLicitaciones = mysql_query($query_rsLicitaciones, $pjn) or die(mysql_error()); $row_rsLicitaciones = mysql_fetch_assoc($rsLicitaciones); $totalRows_rsLicitaciones = mysql_num_rows($rsLicitaciones); ?> ", $cadena); $cadena = str_replace( chr(10), "

", $cadena ); return($cadena) ; } function tatoFecha($var1) { list($year, $month, $day) = split('[/.-]', $var1); $fecha = $day."-".$month."-".$year; return($fecha); } ?>

Alguien podría decirme que estoy haciendo mal. Muchas Gracias