mysql - Php display all non-duplicate images -
i have database containing images product. i'm displaying images database this.
$sql="select imagename table item_id='$id'";
then select names , select images images folder. there duplicate images in folder. cant remove them manually there thousands of images. have script compares 2 images , tells whether same or not. how compare images , select ones not identical example: compare script works this!
$a-image1.jpg; $b=image2.jpg; $sameimage=$samecheck->compare($a,$b);
you retrieve images duplicates by
$sql="select imagename table group imagename having count(imagename) > 1";
may not 100% correct starting point.
Comments
Post a Comment