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

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -