cvs: php-hosts-web / host-services-edit.php
| From: | jim winstead | Date: | Thu, 25 Apr 2002 03:43:01 +0000 |
| Subject: | cvs: php-hosts-web / host-services-edit.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-9856@lists.php.net to get a copy of this message | ||
jimw Wed Apr 24 23:43:01 2002 EDT
Modified files:
/php-hosts-web host-services-edit.php
Log:
update lastupdate time for host when updated
Index: php-hosts-web/host-services-edit.php
diff -u php-hosts-web/host-services-edit.php:1.1 php-hosts-web/host-services-edit.php:1.2
--- php-hosts-web/host-services-edit.php:1.1 Wed Apr 24 23:31:20 2002
+++ php-hosts-web/host-services-edit.php Wed Apr 24 23:43:00 2002
@@ -104,6 +104,8 @@
$query = "delete from host_services where HostID=$hostid";
$q1 = mysql_query($query) or die ("\"$query\" is a bad query.");
+ $querys[] = "UPDATE hosts SET lastupdate=NOW() WHERE HostID=$hostid";
+
if ($querys) {
while (list(,$query)=each($querys)) {
if (!@mysql_query($query)) {