get no of qustion in quiz module

There is a problem in quiz module in drupal. that it dose not show any way to see the no of quiz contains. This script can be used to show the no of question in quiz (drupal module) using views or anywhere else you can use.

$ttlQs = db_query(“SELECT COUNT(*) as ttlCnt FROM {quiz_node_relationship} where parent_nid = %d”, $data->nid);
$ttlQs = db_fetch_array($ttlQs);
print $ttlQs[‘ttlCnt’];

Up Stairs

I have +4 years of quality experience in Front-End Developer from India. I have worked on HTML5, CSS3, JSON, XML, Angular, jQuery, WordPress, Bootstrap for developing tabled, table-less, responsive and non-Responsive web-sites. I have worked on many complicated and easy design in some top level web development companies in India while also working on independent projects as freelancer.

Got something to say? Go for it!