manguish
Sun 2nd Jan '05, 1:20pm
I've wrote this to delete the porn referral statistics on my site.
<?php
$DB_site->query("DELETE FROM `statistik_referer` WHERE `Referer` LIKE '%porn%'");
$DB_site->query("DELETE FROM `statistik_referer` WHERE `Referer` LIKE '%incest%'");
$DB_site->query("DELETE FROM `statistik_domain` WHERE `domain` LIKE '%porn%'");
$DB_site->query("DELETE FROM `statistik_domain` WHERE `domain` LIKE '%incest%'");
?>
Just a quick cjeck - i know it works, but is there a better(?) way to write it instead of having 4 $DB_site->query. Make it into 1 query? Dunno
Just for my own curiosity ;)
<?php
$DB_site->query("DELETE FROM `statistik_referer` WHERE `Referer` LIKE '%porn%'");
$DB_site->query("DELETE FROM `statistik_referer` WHERE `Referer` LIKE '%incest%'");
$DB_site->query("DELETE FROM `statistik_domain` WHERE `domain` LIKE '%porn%'");
$DB_site->query("DELETE FROM `statistik_domain` WHERE `domain` LIKE '%incest%'");
?>
Just a quick cjeck - i know it works, but is there a better(?) way to write it instead of having 4 $DB_site->query. Make it into 1 query? Dunno
Just for my own curiosity ;)