Category: Be Tech-Savvy

Be Tech-Savvy

How to write a simple pager_query in Drupal that is sortable?

<?php $list=array(”); $rows = array(”); $header = array(array(‘data’=>t(‘Title’),’field’=>’n.title’), array(‘data’=>t(‘Referral Author’),’field’=>’n.uid’), array(‘data’=>t(‘Time Created’),’field’=>’n.created’, ‘sort’ => ‘asc’), ‘Average Rating’); $res = “SELECT n.title,n.nid, n.uid, n.created from {content_type_referral} cr join {node} n …
css.phpCopyright11