Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
|
Ok, I upgraded to 2.4.2 and I must have missed a step because now when I go to sign the guestbook, I get this error.
MySQL Error : Query Error
Error Number: 1064 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 'SET session_id='7ff6d8f17e2f796991dd0e977cce0383', validate_key
Date : Fri, October 13, 2006 09:56:38
IP : 68.50.119.138
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Referer : http://www.buffalosoldiersmccmd.org/advancedguestbook/index.php
PHP Version : 4.3.11
OS : Linux
Server : Apache
Server Name : www.buffalosoldiersmccmd.org
Not being a SQL person I need
help with any suggestions Please.... Thanks
|
|
|
I was trying to modify to prevent the spamming and probally erased some code by mistake. I also was trying to add the Validation to also prevent spamming.
Now I am getting this error
Parse error: parse error, unexpected $ in /home/content/b/s/m/bsmccmd/html/advancedguestbook/addentry.php on line 35
and here is how the file currently reads
<?php
include("verify.php");
$include_path = dirname(__FILE__);
include_once $include_path."/admin/config.inc.php";
include_once $include_path."/lib/$DB_CLASS";
include_once $include_path."/lib/image.class.php";
include_once $include_path."/lib/template.class.php";
include_once $include_path."/lib/vars.class.php";
include_once $include_path."/lib/add.class.php";
$gb_post = new addentry($include_path);
if (isset($HTTP_POST_VARS["gb_actionwecan"])) {
if (strtoupper($_POST["keycode"])!=$Vword)
{
echo ("The <strong>Image Verication</strong> code you supplied is incorrect.<br />\nPlease enter the 8 characters that appear in the image.");
echo $gb_post->process();
die();
$gb_post->Vrand = $Vrand;
$gb_post->name = (isset($HTTP_POST_VARS["gb_name"])) ? $HTTP_POST_VARS["gb_name"] : '';
$gb_post->email = (isset($HTTP_POST_VARS["gb_email"])) ? $HTTP_POST_VARS["gb_email"] : '';
$gb_post->url = (isset($HTTP_POST_VARS["gb_url"])) ? $HTTP_POST_VARS["gb_url"] : '';
$gb_post->comment = (isset($HTTP_POST_VARS["gb_comment"])) ? $HTTP_POST_VARS["gb_comment"] : '';
$gb_post->location = (isset($HTTP_POST_VARS["gb_location"])) ? $HTTP_POST_VARS["gb_location"] : '';
$gb_post->icq = (isset($HTTP_POST_VARS["gb_icq"])) ? $HTTP_POST_VARS["gb_icq"] : '';
$gb_post->aim = (isset($HTTP_POST_VARS["gb_aim"])) ? $HTTP_POST_VARS["gb_aim"] : '';
$gb_post->gender = (isset($HTTP_POST_VARS["gb_gender"])) ? $HTTP_POST_VARS["gb_gender"] : '';
$gb_post->userfile = (isset($HTTP_POST_FILES["userfile"]["tmp_name"]) && $HTTP_POST_FILES["userfile"]["tmp_name"] != "") ? $HTTP_POST_FILES : '';
$gb_post->user_img = (isset($HTTP_POST_VARS["gb_user_img"])) ? $HTTP_POST_VARS["gb_user_img"] : '';
$gb_post->preview = (isset($HTTP_POST_VARS["gb_preview"])) ? 1 : 0;
$gb_post->private = (isset($HTTP_POST_VARS["gb_private"])) ? 1 : 0;
echo $gb_post->process($_POST["gb_actionwecan"]);
} else {
echo $gb_post->process();}
PLEASE HELP and tell me what I did wrong......
|
|
|
|
|
|
Based on the open source JForum
|