Advertisement
vishnu3006

Echo For Body

Sep 6th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1.    
  2.      if ($dashboard_mode) {
  3.     $content = freeway_dashboard_build_filter_query();
  4.     while ($latest_node = db_fetch_object($content)) {
  5.        echo "Nid is: ". $latest_node->nid ."<br>";
  6.    echo "Title is: ". $latest_node->title ."<br>";
  7.    echo "Type is: ". $latest_node->type ."<br>";
  8.    echo "Lanuage is: ". $latest_node->language ."<br>";
  9.    echo "Status is: ". $latest_node->status ."<br>";
  10.    echo "Body is: ". $latest_node->body ."<br>";
  11.    echo "End of node---------------------------------<br><br>";
  12.    
  13.   }
  14.    
  15.  
  16. }
  17.  
  18. $form['#content'] = $content;
  19.  
  20.  
  21.  
  22. }
  23.  
  24. function freeway_wrapper_node_get_types($op = 'types', $node = NULL, $reset = FALSE) {
  25.  
  26.   return node_get_types($op, $node, $reset);
  27.  
  28. }
  29.  
  30. function freeway_dashboard_build_filter_query() {
  31.  
  32.  $contents = db_query("SELECT * FROM node");
  33.  return $contents;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement