query($Mysql); while($q->next_record()) { $display1=$display1. "" . $q->f("caption") . "".$q->f("details").""; } $sql3="select itemid, caption from ".$LTable." where itemid < ".$id." order by entrydate desc limit 1"; //echo $sql3; $q->query($sql3); if($q->next_record()){ $itemid3=$q->f("itemid"); $caption3=$q->f("caption"); $previous=""; } $sql4="select itemid, caption from ".$LTable." where itemid > ".$id." order by entrydate asc limit 1"; //echo $sql4; $q->query($sql4); if($q->next_record()){ $itemid3=$q->f("itemid"); $caption3=$q->f("caption"); $next=""; } //echo $previous; ?> commoditiescontrol.com - Top Gainers in MCX, Top Losers in MCX, Expert Talk, Agri News, Weather News, World Press, Shipping News, Events, Plant Quotes, Arrivals, International Quotes, Domestic Quotes, FOREX, Veg Oils, Pulses, Cotton, Spices, Grains, Precious Metals, Metals, Energy, Pulses, Cotton, Spices, Grains, Precious Metals, Metals, Energy, Others, Soy Complex, Soy Complex, Others
Print this Page Email to Friend Recommend to Friend
".$previous."  ".$next."
"; } ?>
query($sql); $count=0; ?> next_record()) { $count++; $itemid1=$q->f("itemid"); $caption=$q->f("caption"); //$commodityid=$q->f("commodityid"); //$varietyid1=$q->f("varietyid"); if(strlen($caption) >= 60) $caption = substr($caption,0,60)."..."; $datet=""; if($m_type=="WPN" && $q1->f("subheading")){ $t5news1 = $t5news1 . ""; } else{ $t5news1 = $t5news1 . ""; } //$t5news = $t5news . ""; } echo $t5news1; //echo "
Top 5
".$datet."f("subheading")."\" alt='News Detail' target=\"_blank\">" . $caption . "
".$datet."" . $caption . "
".$datet."f("subheading")."\" alt='News Detail' target=\"_blank\">" . $caption . "
"; ?>