I am on shared hosting, and run a small e-commerce site that is database driven (mysql).
Since I am on shared hosting, I have no access to the mysql logs. More than several times I've accidentally deleted or changed something and had to go through old backups to restore it. So I thought about creating my own log .. something along the lines of a function i.e.
function runsql($command) {
$response = mysql_query($command);
$log = "INSERT into homemadelog ('key','command','added') values ('','$x',NOW());";
$y = mysql_query($log);
}
I know this is a hard question to answer, but I'm wondering whether this will overload the server in any way? Some pages use mysql more than others, but some of the popular pages have probably 10-20 query's. This would in effect double that.