Re: guest_info table
I found that this works on any of my sites (without having to configure each one for each site). My sites aren't horribly busy so I set this in cron to run every night at midnight.
Code:
<?php
include("include/config.php");
$db=mysql_connect ($db_host,$db_user,$db_pass) or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ($db_name);
mysql_query("TRUNCATE TABLE `guest_info`");
#mysql_query("TRUNCATE TABLE `playlist`"); // uncomment if you also don't want to track peoples entire playlists.
mysql_close($db);
print "Your guests and their play lists have been cleared from the database.\n";
?>
If it's not fun, stop doing it!
Bookmarks