I'm creating similar thing to twitter retweet function!
This is my database table for tweets (status messages):
ID || USER_ID || TWEET || RETWEET_ID || RETWEET_NAME || DATE
What I'm trying to find out is, if the logged in user retweets something, when they refresh the page I don't want them to see the retweet button (because obviously they have retweeted it). I'm more concerned with the app logic; it's driving me crazy.
p.s. a user's timeline is queried using a while loop array, so it has to distinguish between a normal tweet, and retweeted tweet, if you get my drift!! :))
EDIT: another thing is if it's a normal tweet, both values RETWEET_ID and RETWEET_NAME are NULL, so that's how I can differentiate between the two!!