Script used to detect any logo without an entry in the DB.
Should be integrated in the admin with the ability to deleted the orphaned logos.
read(); $entry = $d->read(); while (false !== ($entry = $d->read())) { $query = "SELECT count(0) FROM logos WHERE file = '$entry'"; $result = mysql_query($query); if(!mysql_result($result,0)) print("$entry