<?php $filename = "file.csv"; $file = fopen($filename, "r"); $read = fread($file, filesize($filename)); $split = array_unique(explode("\n", $read)); fclose($file); $filename2 = "other.csv"; $file2 = fopen($filename2, "a"); foreach($split as $key=>$value) {...
20 June, 2019
Remove duplicates form CSV - PHP Coding Help
Programing Coderfunda
June 20, 2019
No comments
<?php
$filename = "file.csv";
$file = fopen($filename, "r");
$read = fread($file, filesize($filename));
$split = array_unique(explode("\n", $read));
fclose($file);
$filename2 = "other.csv";
$file2 = fopen($filename2, "a");
foreach($split as $key=>$value) {
if($value != "") {
fwrite($file2, $value . "\n");
}
}
...
18 June, 2019
Jquery Checkbox check all
Programing Coderfunda
June 18, 2019
Checkbox, Jquery
No comments
Jquery Checkbox check all
Programing Coderfunda
June 18, 2019
Checkbox, Jquery
No comments
17 June, 2019
How to Import and Export CSV Files Using PHP and MySQL
Programing Coderfunda
June 17, 2019
php
No comments
<?phpsession_start();error_reporting(0);include('includes/config.php');include('includes/sessionout.php');if(strlen($_SESSION['alogin'])==0) { header('location:index.php');}else{$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); //$connect = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); // $success =...
How to Import and Export CSV Files Using PHP and MySQL
Programing Coderfunda
June 17, 2019
php
No comments
<?phpsession_start();error_reporting(0);include('includes/config.php');include('includes/sessionout.php');if(strlen($_SESSION['alogin'])==0) { header('location:index.php');}else{$conn = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); //$connect = mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); // $success =...