Question: I am trying to create a web page for daily discussion that has topic based on regions and a user can vote based on that
I am trying to create a web page for daily discussion that has topic based on regions and a user can vote based on that topic content then the topic or post will be placed in the (hot topic in ascending order based of how many votes on the post).
HOW I CAN IMPLEMENT A PHP CODE FOR (Upvote/Downvote and keep track of all votes in a database and retrieve them properly ).
see detail in the databases given.



Date Arch Post ID Post LeveTopic Name Archives Region Reaion ID Region Name Country User User IDUsemae Password Up_CommentsUp_Topics Region ID Comment Post IDCont ID ParentIDUpotes DownvotesUserD CommentDate_Sub Post User ID Post IDTopic NametePtUpvotes Downvotes Topic User ID Post IDTopic NameDate SubUpvotes Downvotes Comment Archives Post IDComment IDParent IDts DowvotesUserD CommentDate Sub Date Arch Post ID Post LeveTopic Name Archives Region Reaion ID Region Name Country User User IDUsemae Password Up_CommentsUp_Topics Region ID Comment Post IDCont ID ParentIDUpotes DownvotesUserD CommentDate_Sub Post User ID Post IDTopic NametePtUpvotes Downvotes Topic User ID Post IDTopic NameDate SubUpvotes Downvotes Comment Archives Post IDComment IDParent IDts DowvotesUserD CommentDate Sub
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
