Closed (fixed)
Project:
Voting API
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2011 at 11:58 UTC
Updated:
11 Apr 2011 at 08:41 UTC
I tried looking for an issue on this but couldnt find it
I basically need to have an extra field in the voteapi table to store additional value. This value is not object related, it is instead a list of contents within a node and they all have a special ID to distinguish them . Does that make sense?
This is what i want to store for each vote
contend_id = usually the node ID
value = the vote count
tag = vote
value type = point
uid = user id
mycontent_id = (a single node has many of this id and i want to an individual vote for each)
Thanks
Comments
Comment #1
amedjones commentedComment #2
amedjones commentedI took some suggestion from IRC and was told that one way is to create a separate table and store my content_id along with the vote_id then use JOIN statements to link the two table
I am now facing problem retrieve the vote_id of new entries. Does anyone know how I can achieve this? I have tried both mysql_insert_id and db_last_insert_id() but it retrieves an ID of vote_cache_id from the votingapi_cache
Comment #3
amedjones commentedI've managed to solve the problem. if there's anyone else facing the same problem of extracting the vote_id. try the following
this ticket can be closed
Comment #4
amedjones commented