Calculate no of years,month,days,hours,minutes and seconds past since given date
function getYMDHMSPastFromTwoDate($startTimeStamp,$endTimeStamp) { $years = ”; $Month = ”; $Days = ”; $Hrs = ”;…
Read Morefunction getYMDHMSPastFromTwoDate($startTimeStamp,$endTimeStamp) { $years = ”; $Month = ”; $Days = ”; $Hrs = ”;…
Read MoreFor example to execute query like UPDATE tableName SET column1 = 'abc',column2 = 'xyz' WHERE…
Read MoreStep 1: Copy this css style code into your header tage right before the end…
Read Morefunction sortArray(x,y) { return ((x < y) ? -1 : ((x > y) ? 1…
Read MoreWhen some special character(or other language data) is displayed as ‘? ? ? ? ?’…
Read More$con = sfContext::getInstance()->getDatabaseConnection(‘propel’); $c2 = new Criteria(); $c2->add(TblTopPeer::TF_ZIPCODE,$topForecastInfo->getForZipcode()); $c2->add(TblTopPeer::TF_FORCASTDATE,$topForecastInfo->getForForecastdate()); $c3 = new Criteria(); $c3->add(TblTopPeer::TF_FID,$topForecastInfo->getForId()); $c3->add(TblTopPeer::TF_USERID,$topForecastInfo->getForUserid());…
Read More$cs = new Criteria(); $criterion = $cs->getNewCriterion(HfArticlesPeer::AR_DESCRIPTION,’%’.$searchText.’%’,Criteria::LIKE); $criterion->addOr($cs->getNewCriterion(HfArticlesPeer::AR_TITLE,’%’.$searchText.’%’,Criteria::LIKE)); $criterion1 = $cs->getNewCriterion(HfArticlesPeer::AR_STATUS,’ARCHIVE’,Criteria::EQUAL); $criterion1->addOr($cs->getNewCriterion(HfArticlesPeer::AR_STATUS,’PUBLISHED’,Criteria::EQUAL)); $cs->add($criterion1); $cs->add($criterion); $cs->add(HfArticlesPeer::AR_CATEGORY…
Read MoreWhen you are using symfony framework , and when you get the error as “No…
Read Morevar itemManCnt=2; function addMoreHomeImage() { if(itemManCnt==6) { alert(“You can upload only 5 files”); return false;…
Read Morefunction isValidfile(filename) { file_value = filename; var checkfile = file_value.toLowerCase(); if (!checkfile.match(/(\.doc|\.DOC|\.pdf|\.PDF)$/)) { return false;…
Read More