Error al cargar pagina
hola a todos esta vez si necesito ayuda de verdad, me da un error a la hora de intentar de insertar un comentario me redirije a una pagina la cual pongo en esta imagen espero puedan solucionar mi problema.
gracias a todos
gracias a todos
0
Puntos
Puntos
1158
Visitas
Visitas
8
Resp
Resp
Por graficaslucero hace 127 meses
Principiante
Respuesta #1
Amigo mío, creo que el mensaje que te sale te informa sucifientemente. Te dice que tienes que contactar con el webmaster... jajaja... es una broma, perdona.
Creo que con una foto no es suficiente para saber qué te ocurre. Me adelanto a lo que te van a decir y sería mejor que pusieses el código para saber lo que estás haciendo y ver qué falta o qué sobra.
A mí me da ese error normalmente cuando olvido poner un punto, punto, barra o algo semejante.
Creo que con una foto no es suficiente para saber qué te ocurre. Me adelanto a lo que te van a decir y sería mejor que pusieses el código para saber lo que estás haciendo y ver qué falta o qué sobra.
A mí me da ese error normalmente cuando olvido poner un punto, punto, barra o algo semejante.
0
Puntos
Puntos
Por LuzEsmeralda hace 127 meses
Principiante
Respuesta #2
ainsss me vuelvo loquito con esto haber si me echs un cable pero espera haber si me sale ahora empeze de nuevo, oye haber si me agregas
0
Puntos
Puntos
Por graficaslucero hace 127 meses
Principiante
Respuesta #3
<?php require_once('Connections/conexion.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;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO r_coments (idnoticias, autor, fecha, comentario) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['idnoticias'], "int"),
GetSQLValueString($_POST['autor'], "int"),
GetSQLValueString($_POST['fecha'], "text"),
GetSQLValueString($_POST['comentario'], "text"));
mysql_select_db($database_conexion, $conexion);
$Result1 = mysql_query($insertSQL, $conexion) or die(mysql_error());
$insertGoTo = "";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td><p>Comentario<br />
<textarea name="comentario" cols="50" rows="5"></textarea>
</p></td>
</tr>
<tr valign="baseline">
<td><input type="submit" value="Comentar" /></td>
</tr>
</table>
<input type="hidden" name="idnoticias" value="<?php echo $row_VerPostPagina['id']; ?>" />
<input type="hidden" name="autor" value="<?php echo $_SESSION['MM_id'] ?>" />
<input type="hidden" name="fecha" value=" <?php echo date ("d/m/Y") ." a las ". date("H:i:s");?>" " />
<input type="hidden" name="MM_insert" value="form1" />
</form>
liena 54 me da el error haber si me dices de que viene
<?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;
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO r_coments (idnoticias, autor, fecha, comentario) VALUES (%s, %s, %s, %s)",
GetSQLValueString($_POST['idnoticias'], "int"),
GetSQLValueString($_POST['autor'], "int"),
GetSQLValueString($_POST['fecha'], "text"),
GetSQLValueString($_POST['comentario'], "text"));
mysql_select_db($database_conexion, $conexion);
$Result1 = mysql_query($insertSQL, $conexion) or die(mysql_error());
$insertGoTo = "";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td><p>Comentario<br />
<textarea name="comentario" cols="50" rows="5"></textarea>
</p></td>
</tr>
<tr valign="baseline">
<td><input type="submit" value="Comentar" /></td>
</tr>
</table>
<input type="hidden" name="idnoticias" value="<?php echo $row_VerPostPagina['id']; ?>" />
<input type="hidden" name="autor" value="<?php echo $_SESSION['MM_id'] ?>" />
<input type="hidden" name="fecha" value=" <?php echo date ("d/m/Y") ." a las ". date("H:i:s");?>" " />
<input type="hidden" name="MM_insert" value="form1" />
</form>
liena 54 me da el error haber si me dices de que viene
0
Puntos
Puntos
Por graficaslucero hace 127 meses
Principiante
Respuesta #4
a mi no me da ningún error
0
Puntos
Puntos
Por LuzEsmeralda hace 127 meses
Principiante
Respuesta #5
jodío, por el ../ en la línea uno. así:
<?php require_once('../Connections/conexion.php'); ?>
0
Puntos
Puntos
Por LuzEsmeralda hace 127 meses
Principiante
Respuesta #6
iya joia que lo tengo puesto ainssss
y lo quite antes grrrrrrrrrrrr ufff
y lo quite antes grrrrrrrrrrrr ufff
0
Puntos
Puntos
Por graficaslucero hace 127 meses
Principiante
Respuesta #7
La verdad es que no entiendo tu idoma. Podrías hacer un esfuerzo y escribir mejor para que los demás sepamos lo que dices. Es solo una sugerencia, porque hablar bien es gratis.
0
Puntos
Puntos
Por LuzEsmeralda hace 127 meses
Principiante
Respuesta #8
espera creo que ya que se cual es el problema ahora te pido ayuda sino va
0
Puntos
Puntos
Por graficaslucero hace 127 meses
Principiante