1. Theming
2. Module Creation:
a. Menu
b. Form
c. Ajax
d. Database
GMgKe586q6suSQnyqZLlGCooeWM
Drupal - Manu
Drupal - Expose Page Variables
Drupal - Render Variables
Drupal - Theming
Drupal Module - Creating Table
Drupal - Database Handling
Drupal - Show Result Of Tables
Drupal - Theming The Table
Drupal - Theming The List
Drupal Page Callback With Arguments
Drupal Page Callback
Array
(
[0] => stdClass Object
(
[id] => 1
[name] => lady gaga
[age] => 25
[city] => new york
)
[1] => stdClass Object
(
[id] => 2
[name] => luna maya
[age] => 27
[city] => denpasar
)
)The above is the result of this function
function get_data(){ $output = ''; $select = db_select('data_siswa','c')->fields('c')->execute()->fetchAll(); return print_r($select); }
To get the data as a table, use this one:
function introo(){
$output = '<table>';
$output .= '<tr><th>Name</th><th>Age</th><th>City</th></tr>';
$select = db_select('data_siswa','c')->fields('c') ->execute()->fetchAll(); foreach($select as $key){
$output .= '<tr><td>'.$key->name ."</td><td>"; $output .= $key->age. "</td><td>". $key->city ."</td></tr>";
}
$output .= "</table>";
return $output;
}
Drupal Database Access
Message In Drupal
Drupal Form
Drupal Menu
Hook Menu With Tabs
Hierarchical Hook Menu
Simple Menu Hooks
ComboBox In Drupal Form