Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro
Author Message
NuclearX
New Member
New Member


Joined: May 21, 2004
Posts: 21

PostPosted: Tue Jun 08, 2004 9:57 pm Reply with quote

Sorry to come up with yet another error. Crying or Very sad

Anyways. I have this error when I attempted to delete another user's poll (it had already been replied to, btw):
Code:
DEBUG MODE


SQL Error : 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 '' at line 2

DELETE FROM nuke_bbvote_results WHERE vote_id =

Line : 583
File : /home/nuclearx/public_html/includes/functions_post.php


Then when I go back to look at the post, I don't see the poll (as if it had been deleted), but the [Poll] text is still on the thread title.

Any ideas? Evil or Very Mad
 
View user's profile Send private message
NuclearX
PostPosted: Tue Jun 08, 2004 10:03 pm Reply with quote

PS, the functions_post.php lines are here:

Code:
$sql = "DELETE FROM " . VOTE_DESC_TABLE . "

                        WHERE topic_id = $topic_id";
                if (!$db->sql_query($sql))
                {
                        message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql);
                }

                $sql = "DELETE FROM " . VOTE_RESULTS_TABLE . "
                        WHERE vote_id = $poll_id";
                if (!$db->sql_query($sql))
                {
                        message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql);
                }

                $sql = "DELETE FROM " . VOTE_USERS_TABLE . "
                        WHERE vote_id = $poll_id";
                if (!$db->sql_query($sql))
                {
                        message_die(GENERAL_ERROR, 'Error in deleting poll', '', __LINE__, __FILE__, $sql);
                }
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's v7.0 Customized Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©