URL:
"http://localhost/phpwcms/include/inc_ac ... ucture.php"
I get this Error (Displayed in browser):
"error"
The "error" is generated from line 76 (last line of following code) found after a little debugging:
Code: Select all
if(intval($_POST["acat_new"]) == 0 && intval($_POST["acat_id"])) {
if(trim($_POST["acat_name"])) {
$sql = "UPDATE ".DB_PREPEND."phpwcms_articlecat SET ".
"acat_name='".getpostvar($_POST["acat_name"])."', ".
"acat_info='".getpostvar($_POST["acat_info"], 32000)."', ".
"acat_alias='".proof_alias($_POST["acat_id"], $_POST["acat_alias"], $db)."', ".
"acat_aktiv=".intval($_POST["acat_aktiv"]).", ".
"acat_public=".intval($_POST["acat_public"]).", ".
"acat_struct=".intval($_POST["acat_struct"]).", ".
"acat_template=".intval($_POST["acat_template"]).", ".
"acat_sort=".intval($_POST["acat_sort"]).", ".
"acat_uid=".$_SESSION["wcs_user_id"].", ".
"acat_hidden=".intval($_POST["acat_hidden"]).", ".
"acat_ssl=".intval($_POST["acat_ssl"]).", ".
"acat_regonly=".intval($_POST["acat_regonly"]).", ".
"acat_topcount=".intval($_POST["acat_topcount"]).
" WHERE acat_id=".intval($_POST["acat_id"]).";";
mysql_query($sql, $db) or die("error");
}
}
Am I just forgetting to check a config file or something?
I have verified (as far as I can tell):
include/inc_conf/conf.inc.php
include/inc_ext/phpMyAdmin/conf.inc.php
What can I do to debug a little more?