Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/03/2012, 07:58
WorldFox
 
Fecha de Ingreso: octubre-2011
Mensajes: 230
Antigüedad: 12 años, 6 meses
Puntos: 75
Respuesta: Fallo imposible de solucionar

Cita:
Iniciado por desoler Ver Mensaje
Hola gente, tengo este fallo y no se de donde y por que proviene.

Código PHP:
Ver original
  1. ............
  2. while ($fila = mysql_fetch_array($quoted_sql))
  3. {
  4. echo"
  5. <tr class='spec'>
  6. <td align=center><input type='checkbox' name='select[]' value='".$fila['email']."'></form></td>
  7. <td align=center><a href='info.php?email_enviado=".$fila['email_enviado']."' target='_blank'>".$fila['personalID']."</a></td>
  8. <td align=center>".$fila['fecha_registro']."</td>
  9. <td width='220px'>".$fila['first_name']." ".$fila['last_name']."<br />".$fila['phone']."<br />".$fila['email']."<span class='enviado'>".$fila['enviado']."</span><span class='recordatorio'>".$fila['recordatorio']."</span> </td>
  10. ................

la linea 7 envía la variable a la pagina info.php

Código PHP:
Ver original
  1. ........
  2. //3. Tomar los campos provenientes
  3. $personalID = $_GET['personalID'];
  4. $email_enviado = $_GET['email_enviado'];
  5.  
  6. $consulta = mysql_query("SELECT * FROM quoted WHERE personalID='".$personalID."'");
  7. if (!$consulta) {
  8. die("Fallo en la seleccion de registro en la Base de Datos: " . mysql_error());
  9. }
  10.  
  11. while ($fila = mysql_fetch_array($consulta)){
  12.  
  13. echo "
  14.  
  15. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
  16. 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
  17. <html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
  18.     <head>
  19.         <title>Send Email</title>
  20.         <link  rel='stylesheet' type='text/css' href='css/estilo.css' />
  21.     </head>
  22.  
  23.     <body>
  24.         ".$fila['email_enviado']."
  25.     </body>
  26. </html>
  27.  
  28. ";
  29.  
  30. }
  31.  
  32. //4. Cerrar conexión a la Base de Datos
  33. mysql_close($conexion);
  34.  
  35. ?>
  36. ........

aquí debería mostrar lo que contiene esa sentencia, pero al abrir la pagina nueva me da este mensaje:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache Server at dash.transportedeautos.com Port 80

lo peor es que tengo mas archivos similares y no tengo ningún problema. Ya le he dado todos los privilegios (777) y nada.
Alguna idea por favor?

Gracais
¿Pero te has conectado a la Base de Datos?

Saludos.