Search found 2 matches

by maxhudson
Mon Jan 10, 2011 11:43 pm
Forum: PHP - Code
Topic: help with forum "subscribe"
Replies: 0
Views: 356

help with forum "subscribe"

I have something like a forum (componentadvice.com) that i build pretty much from scratch and is still in progress. I would like to have something like a subscription feature so when a user clicks a link, it adds the topic to their subscription, they will be notified somehow and recieve a link. The ...
by maxhudson
Mon Jan 10, 2011 11:26 pm
Forum: PHP - Code
Topic: MySQL table operations (multiply/divide)
Replies: 1
Views: 437

MySQL table operations (multiply/divide)

Basically, I have two colums. What I want it to do is this: if column (topic_rating_total)'s value = 0 { $ratingtotal = "0" } else { $ratingtotal = column (topic_rating_total)'s value divided by column (topic_num_rating)'s value} Heres my code attemt (snippet): while($row = mysql_fetch_ass...