Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

(PHP Nuke) Error

Estas en el tema de (PHP Nuke) Error en el foro de Sistemas de gestión de contenidos en Foros del Web. Mi web la he creado con PHP Nuke, y ya eh preguntado en la infinidad de páginas de PHP Nuke y no me responden. Mi ...
  #1 (permalink)  
Antiguo 16/01/2004, 03:50
 
Fecha de Ingreso: octubre-2003
Mensajes: 24
Antigüedad: 20 años, 6 meses
Puntos: 0
(PHP Nuke) Error

Mi web la he creado con PHP Nuke, y ya eh preguntado en la infinidad de páginas de PHP Nuke y no me responden.

Mi web me lanza este error:

Parse error: parse error in /home/catopdj/public_html/comu/modules/ecard/card_setup.php on line 74
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Ya revise el archivo, pero no se porque falla,

Esto es lo que tengo en el archivo:

<?php
//////////////////////> ecard v.2 for PHPNUKE <//////////////////////
// //
// Copyright (C) 2002 Felix Geithner, [email protected] //
// //
// This script is freeware, as long as the header is kept in tact //
// Use of this script is on own risk and no support is offerd //
// to report bug please let me know by email. //
// //
// This script is based on 'Send an Ecard' by Ralf Floris. //
// All the credits go to him. I just modified and optimized it //
// for PHPNUKE. ;) //
// //
//////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////
// //
// All " has to be writen as \" //
// So $var = "...Says "Oh!" and looked"; has to be //
// $var = "...Says \"Oh!\" and looked"; //
///////////////////////////////////////////////////////


// The Database details
$dbhost = "localhost";
$dbdatabase = "xxxxxxx";
$dbuser = "xxxxxx";
$dbpass = "xxxxxx";


// Making a connection
$connection = mysql_connect($dbhost, $dbuser, $dbpass) or die("unable to connect to MySql server");
$db = mysql_select_db($dbdatabase, $connection);


// Name of the table where all the eCards are stored in.
$nuke_ecard_db = "nuke_ecard_db";

// Name of the table where all the send eCards are stored in.
$nuke_ecard_db_stored = "nuke_ecard";

// When the sended cards has to be discarded (in secs.)
$kept = "1209600"; // 14 days

// admin email
$admin_email = "[email protected]";

//admin name
$admin_name = "TopDj";

//web site name
$website_name = "Redmix.net";

// The subject of the sended eCard
$subjecard = "Tu tienes una postal de $name_sender en $website_name _";

// The subject, to notify someone that his card has been picked up
$subjecardnotify = "La postal para $name_receiver ha sido enviada_";

// Complete url to the script sendcard.php without the trailing slash.
$domain = "http://www.redmix.net/comu";

// set this to the number of results you wish on each page
$limit = 20;




// This is the message that is send by email

$emailmessage = "Hola $name_receiver,

Puse una postal para ti en $website_name.


Puedes verla en:
$domain/modules.php?name=ecard&file=sendcard&viewcard=1&id =$id

$name_sender
----------------------------------------------
Enlázate!
www.redmix.net



// This is the message that will be send when the card is pick up.

$emailmessagenotify = "Hola $name_sender,

La postal que tu enviaste a $name_receiver ha sido recibida.


Para ver la postal que tu enviaste visita aquí:
$domain/modules.php?name=ecard&file=sendcard&viewcard=1&id =$id



----------------------------------------------
Enlázate!
www.redmix.net


?>


======> Espero y me ayuden, Bye
  #2 (permalink)  
Antiguo 16/01/2004, 07:51
Ex Colaborador
 
Fecha de Ingreso: junio-2002
Mensajes: 9.091
Antigüedad: 21 años, 10 meses
Puntos: 16
Hola,

Si el codigo lo tienes tal como lo has puesto, te falta cerrar la ultima cadena:
Código PHP:
$emailmessagenotify "Hola $name_sender,

La postal que tu enviaste a $name_receiver ha sido recibida. 


Para ver la postal que tu enviaste visita aquí:
$domain/modules.php?name=ecard&file=sendcard&viewcard=1&id=$id



----------------------------------------------
Enlázate!
[url]www.redmix.net[/url]

"
// <--- esto te faltaba
?> 
Y ahora que me fijo, la cadena anterior tambien la tienes sin cerrar.

De todas formas, dudo que en el trozo que has puesto este la linea 74 (no las he contado), porque comenta algo de una consulta SQL, y no veo que el codigo que la realiza.

Saludos.
__________________
Josemi

Aprendiz de mucho, maestro de poco.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 00:18.