reference a field in CCK Drupal 6 I have two content types: students and chemistry labs.
Students content type has a cck field that lists student type (field_student_type) with Chemistry.Biology, Math, and etc. And Chemistry labs content type has a cck field (field_chemsitry_students) that node references to "students" content type as a list widget. Since it's a chemistry content type, the list needs to pull only chemistry students. With the current setup, it's pulling every student. I can't set the filter in views as it's a drop down list (widget). Views won't let me put operators to be ield_student_type = "Chemistry Student". How would I filter this out? Any suggestions? php filter? The question is more about field to field reference using node reference.
I have no idea why the maintainers haven't fixed this glaring oversight, but after hours searching and testing I figured his out and want to share.

Total results for views with multiple displays and pager

Inline with the view, drop this in view header: 

&lt;?php
print $view-&gt;query-&gt;pager-&gt;total_items; 
?&gt;


Outside the view:

&lt;?php
$view = views_get_view('MY_VIEW_NAME');
$view-&gt;set_display('MY_DISPLAY'); // like 'block_1'  
$view-&gt;execute(); 
print $view-&gt;query-&gt;pager-&gt;total_items; 
?&gt;


That freakin' easy...