Error in posting
Code: Select all
DEBUG MODE
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES (18, 2, , '', 1191560798, '1819bc87', 1, 1, 1, 1)
Line : 177
File : ftw_app_form_submit.phpCode: Select all
$sql = "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig) VALUES ($topic_id, $forum, $user, '', $current_time, '$user_ip', 1, 1, 1, 1)";
if (!$db->sql_query($sql, BEGIN_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
$post_id = $db->sql_nextid();It appears to be generated in the phpbb_topics, topic id forum id topic title, are generated but under topic poster its generating a 0, and of course nothing is showing in the forum.
Should be pritty strait forward a Form when you hit submit generates a post to the apropriat catagory. I have bee working on this for a bit. I dont see anything in general in any of the code that should couse it not to post to the forum. ( I have tryed coding this form a few diferant ways now but each time they fail at acually posting the form to the Forum.