Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = "SELECT n.*, nr.body FROM node n JOIN node_revisions nr on n.vid = nr.vid";
- $content = db_query($query);
- while ($latest_node = db_fetch_object($content)) {
- $options[$latest_node->nid] = ”;
- echo "Nid is: ". $latest_node->nid ."<br>";
- echo "Title is: ". $latest_node->title ."<br>";
- echo "Type is: ". $latest_node->type ."<br>";
- echo "Lanuage is: ". $latest_node->language ."<br>";
- echo "Status is: ". $latest_node->status ."<br>";
- echo "Body is: ". $latest_node->body ."<br>";
- // print '<pre>'; print_r($latest_node); print '</pre>';
- echo "End of node---------------------------------<br><br>";
- }
- $status = array();
- if ($content) {
- while ($data = db_fetch_object($content)) {
- $form[$data->nid] = array(’#value’ => stripslashes($data->nid));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement