Trading Call

"ashwanigujral.com", "Hitendra Vasudeo"=>"stockmechanics.com", "VK Sharma"=>"Technical Analyst", "E Mathew"=>"matheweasow.com"); $expimg_arr = array("Ashwani Gujral"=>"ashwaniguj_60.gif", "Hitendra Vasudeo"=>"hitendra_vasudev_60.gif", "VK Sharma"=>"VKSharma_75.gif", "E Mathew"=>"emathew.gif", "Rahul Mohindar"=>"Rahul_Mohindar_60.jpg"); $experts1_sql="Select date_format(call_date,' %d - %b - %Y') calldate, heading, summary, sc_scid, autono, expert, flag, stoploss1, target1, ent_date from trading_calls where autono='".$autono."'"; $q1->query($experts1_sql); $cnt=0; if ($q1->next_record()) { $cnt++; $heading = $q1->f("heading"); $summary = $q1->f("summary"); $autono = $q1->f("autono"); $expert = $q1->f("expert"); $expimg = $expimg_arr[$expert]; $expdesig = $expdes_arr[$expert]; $scid = $q1->f("sc_scid"); $flag = $q1->f("flag"); $stoploss = $q1->f("stoploss1"); $target = $q1->f("target1"); $calldate= $q1->f("calldate"); $ent_date= $q1->f("ent_date"); $msg_dat=substr($ent_date,0,10); $msg_yr=substr($ent_date,0,4); $curr_dat=date("Y-m-d"); $curr_yr=date("Y"); if($curr_dat!=$msg_dat) { $date_all = explode(" ",$ent_date); $time_xpld = explode(":",$date_all[1]); $date_xpld = explode("-",$date_all[0]); if($curr_yr==$msg_yr) { $filing_dt = date("g.i A M jS", mktime($time_xpld[0], $time_xpld[1], 0, $date_xpld[1], $date_xpld[2], $date_xpld[0])); } else { $filing_dt = date("g.i A M jS Y", mktime($time_xpld[0], $time_xpld[1], 0, $date_xpld[1], $date_xpld[2], $date_xpld[0])); } } else { $filing_dt ="about ". dateTimeDiff($ent_date)." ago"; } if ($scid != "") { $stock_name = stock_price($scid,"BSE","","1"); $stockprice = join(" ", file("/home/mc_poweryourtrade/plus/cptmarket/stockprice.php?scid=$scid")); } if($flag == "BUY") $call_image = "/images/buy.gif"; else $call_image = "/images/sell.gif"; $disp_det = "
"; if($target != "" && $target != 0) $disp_det .= "

TARGET ".$target."

"; else $disp_det .= "

"; if($stoploss != "" && $stoploss != 0) $disp_det .= "

STOP LOSS".$stoploss."

"; else $disp_det .= "

"; $disp_det .= "

"; /*if ($expert=="E Mathew") { $image="emathew.gif"; } else if ($expert=="Rajat K Bose") { $image="rajatbose.gif"; } else if ($expert=="Ashwani Gujral") { $image="ashwaniguj.gif"; } else if ($expert=="Deepak Mohoni") { $image="deepakmohoni.gif"; } else if ($expert=="VK Sharma") { $image="VKSharma_75.gif"; } else if ($expert=="Hitendra Vasudeo") { $image="hitendra_vasudev_60.gif"; }*/ $image="https://images.moneycontrol.com/images/mcplus_plus/".$expimg; } ?>