cavinz

Want To Know Column Of Any CSV File With PHP?!!!!!!! COME HERE

If You want to count your CSV File’s Column than do following, ini_set(“auto_detect_line_endings”, true); // ¬†where it holds the end of the line $file = ‘sample.csv’; $handle = fopen($file,’r’); $data = fgetcsv($handle, 1000, “,”); echo ‘ TOTAL COUNT ‘ . count($data) . PHP_EOL; // will give you the top header...Read more …
cavinz

Order By Value in Query!!!!

If You want to make order as per your value than do following, $query = ” Order by FIELD(FILED_NAME, VALUES_WITH_COMMA)”; where e.g , VALUES_WITH_COMMA = ‘1’,’11’,’2′ FILED_NAME = ‘ID’  Read more …
cavinz

How To Remove Comma Separated Value From INPUT OR STRING using Jquery Or Javascript ?

Here is the function for remove comma separated value from input or string , function removeValue(list, value) { if( list.indexOf(‘,’+value+’,’) != -1 ){ return list.replace(new RegExp(‘,?’+ value + ‘,?’), ‘,’); } else{ return list.replace(new RegExp(‘,?’+ value + ‘,?’), ”) } } where list = VALUE OF STRING; value= SEARCH VALUE;...Read more …
cavinz

How to change URL Without Refreshing Page Using Javascript?

Here is the function to change URL without refreshing page. function ChangeUrl(page, url) { if (typeof (history.pushState) != “undefined”) { var obj = { Page: page, Url: url }; history.pushState(obj, obj.Page, obj.Url); } else { alert(“Browser does not support HTML5.”); } } Call this function like this , ChangeUrl(YOUR TITTLE,YOUR...Read more …