MySQL Forums
Forum List  »  Newbie

Re: Letters and Numbers
Posted by: Jesse Albanese
Date: July 13, 2005 05:18PM

Could you not have something in your PHP script that takes the value, and only calculates is if it is a numerical value?

For a bit of psuedocode:

[total] = 0
for each [question]
{
GET [value]
if (!([value] == "N/A"))
{
[total] += [value]
}
}

[result] = [total] / [question].length

Options: ReplyQuote


Subject
Written By
Posted
July 13, 2005 04:35PM
Re: Letters and Numbers
July 13, 2005 05:18PM
July 14, 2005 09:36AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.