Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/01/2004, 03:50
TopDj
 
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