Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/01/2012, 11:31
aipublicidadags
 
Fecha de Ingreso: enero-2012
Ubicación: Aguascalientes
Mensajes: 6
Antigüedad: 12 años, 3 meses
Puntos: 0
Error en codigo PHP

Tengo una página que funcionaba perfectamente, tuve que cambiar de plan de hosting con el mismo proveedor y ahora que subí el sitio no se visualiza. Les mando la más reciente respuesta que me dan en el Soporte Técnico de la empresa en donde tengo el hosting:

Se ha incrementado el tamaño de memoria del php a 128MB que es la cantidad maxima soportada para muchas aplicaciones que lo requieran asi como tambien se procedio a la actualizacion del PHP a la Version 5.3.8

la pagina que hace mencion no se muestra de manera adecuada debido a que las llamadas a las conexiones entran en Recursividad o ciclicidad en las peticiones que hacen dichas sentencias.


Aqui el código, cabe hacer mención que este fue generado por Dreamweaver, ya que yo no se programar en PHP, muchas gracias de antemano por sus consejos:


<?php require_once('Connections/pedro.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;
}
}

mysql_select_db($database_pedro, $pedro);
$query_Recordset1 = "SELECT * FROM NOTAS";
$Recordset1 = mysql_query($query_Recordset1, $pedro) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!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=utf-8" />
<title>Documento sin título</title>
</head>

<body>
<?php echo $row_Recordset1['RESUMEN']; ?>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>