nid;
$sqlStat1="SELECT count FROM node_hit WHERE nid='$nid'";
$sqlRes1=mysql_query($sqlStat1);
$num=mysql_num_rows($sqlRes1);
if($num){
	$row=mysql_fetch_array($sqlRes1);
	$count=$row['count'];

	$count=$count+1;
		
	$sqlStat="UPDATE node_hit SET count='$count' WHERE nid='$nid'";
	$sqlRes=mysql_query($sqlStat);
}
else{
	$sqlStat="INSERT INTO node_hit VALUES('','$nid','1')";
	$sqlRes=mysql_query($sqlStat);
}

$sqlResult=db_query('SELECT vid FROM vocabulary WHERE name="Companies"');
$row=db_fetch_object($sqlResult);
$vid=$row->vid;


//print l($node->links[comment_add][title],$node->links[comment_add][href]);exit;
//print $node->nid;exit;
//print_r($node->links['comment_add']);exit;
//print sizeof($taxonomy);exit;
//print $node->links['comment_add']['fragment'];exit;
//print $node->links['comment_add']['href'];exit;
//print_r($node->field_image);exit;
//[links][print][href]
//print_r($comment);exit;
//print $node->links['comment_add']['href'];exit;
//print $node->field_author[0]['view'];exit;
$print_publication_date=$node->field_print_publication_date[0]['value'];
$print_publication_date=strtotime($print_publication_date);
$print_publication_date=date('l, d F Y',$print_publication_date);
//$body=$node->content['body']['#value'];
//$body=$node->content['field_bitch']['#value'];
//$body=substr($body,0,100);
if($node->field_image[0]['filepath']){
	$path1=$node->field_image[0]['filepath'];
	if($node->field_caption_1[0]['value']) $caption1="

".$node->field_caption_1[0]['value']."

"; else $caption1=""; $pic_block_1="
\"\"$caption1
"; } else $pic_block_1=""; if($node->field_image_0[0]['filepath']){ $path2=$node->field_image_0[0]['filepath']; if($node->field_caption_2[0]['value']) $caption2="

".$node->field_caption_2[0]['value']."

"; else $caption2=""; $pic_block_2="
\"\"$caption2
"; } else $pic_block_2=""; $comment="links['comment_add']['fragment'].">Add Comment"; //print $comment;exit; ?>
Communicate.ae | the Middle East’s marketing and advertising resource
  • title?>
  • field_subhead[0]['value'];?>
  • by field_author[0]['value'];?> on
content['body']['#value']?>

Read More

    taxonomy; foreach ($taxonomy as $key => $value){ if($value->vid==$vid){ $tid=$value->tid; print "
  • name\">$value->name
  • "; } } ?>