If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Getting new error msg after deleting new field  XML
Forum Index » Support Forum
Author Message
Anonymous



I decided to delete all the code I installed to add the new form and after doing this I tried to submit an entry in my guestbood to test it and now I am getting a new error message. I don't want to have to reinstall my guestbook because I wasn't the one that installed it in the first place. I went to the addentry.phpo file and didn't see anything different than when it was working. the error message I am getting is as follows:

Query Error
--------------------------------------------------------------------------------

MySQL Error : Query Error
Error Number: 1136 Column count doesn't match value count at row 1
Date : Thu, December 2, 2004 20:11:54
IP : 68.124.97.86
Browser : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; {246BCDFE-1828-4E01-9A49-7094CE0F3A7B}; .NET CLR 1.1.4322; yplus 4.1.00b)
Referer : http://minesweeps.com/guestbook/addentry.php
PHP Version : 4.3.9
OS : Linux
Server : Apache
Server Name : www.minesweeps.com

Here is my addentry.php file:

<?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_action"])) {
$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($HTTP_POST_VARS["gb_action"]);
} else {
echo $gb_post->process();
}
?>
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum