I'm trying my damnedest to try to get this thing to work.

All I need to do is compare two fields and see if they are the same value, and if so, just take that one row (there should only ever be one)

I simply have the following in the bottom filter box:

$row->points != $row->points_1

What am I doing wrong?

Chris

Comments

MHLut’s picture

Is that the only line of code you have? From the back of my head (correct me if I'm wrong guys) you always need to return true or false. I believe that in this case, return false means that a value has passed the filter. So you would get a code like this:

if ($row->points != $row->points_1) {
  return false;
}
return true;

P.S. In Drupal 7 we're battling issue #1140896: Variable $row does not contain correct values ($data->_field_data does), though I have my doubts the same thing is going on in D6.

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer supported. If this applies to a later version, please re-open and update the version.