function SetSetting($name, $value) { $link = dbh::connect(); $sql = "UPDATE `settings` SET value='" . $value . "' WHERE setting='" . $name . "' limit 1"; mysql_query($sql); dbh::disconnect($link); }