[support] Filter a select of a node by CCK field

Marolijo marolijo at yahoo.es
Thu Oct 1 11:39:27 UTC 2009


Hello, I wanna put a count of a select on a header.
<?php
$count = db_result(db_query("SELECT COUNT(*) FROM {node} WHERE type =
'articulo'" ));
echo $count;
?>

This is working well but now I need to filter by content type and by a
CCK text field.
Any idea?

Thank's!


More information about the support mailing list