The code below connects to mysql database using drupal hooks and displays the results in a tabular format. You can save the code below as products.module and be sure to create an info file. The code below demonstrates how to sort the table columns in both ascending and descending order and how to provide a css class to a Drupal table.
Comments
Social Networking