Advertisement
vishnu3006

Echo Paste

Sep 8th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. $query = "SELECT n.*, nr.body FROM node n JOIN node_revisions nr on n.vid = nr.vid";
  2. $content = db_query($query);
  3.     while ($latest_node = db_fetch_object($content)) {
  4.    
  5.      $options[$latest_node->nid] =;
  6.      
  7.        echo "Nid is: ". $latest_node->nid ."<br>";
  8.    echo "Title is: ". $latest_node->title ."<br>";
  9.    echo "Type is: ". $latest_node->type ."<br>";
  10.    echo "Lanuage is: ". $latest_node->language ."<br>";
  11.    echo "Status is: ". $latest_node->status ."<br>";
  12.    echo "Body is: ". $latest_node->body ."<br>";
  13.  // print '<pre>'; print_r($latest_node); print '</pre>';
  14.  
  15.    echo "End of node---------------------------------<br><br>";
  16.    
  17.   }
  18.   $status = array();
  19.   if ($content) {
  20.   while ($data = db_fetch_object($content)) {
  21.  
  22.    $form[$data->nid] = array(#value’ => stripslashes($data->nid));
  23.  
  24.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement