Adam Amstrong a5dbc8b292 Fixing broken things...
git-svn-id: http://www.observium.org/svn/observer/trunk@87 61d68cd4-352d-0410-923a-c4978735b2b8
2007-04-09 16:39:23 +00:00

28 lines
510 B
PHP
Executable File

#!/usr/bin/php
<?php
include("config.php");
include("includes/functions.php");
$query = mysql_query("SELECT * FROM devices WHERE device_id = '8'");
$array = mysql_fetch_array($query);
echo($array[1] . "\n");
mysql_query("UPDATE `devices` SET `hostname` = 'sotsci-fw-office01.vostron.net' WHERE `device_id` = '8'");
echo(mysql_affected_rows() . " rows changed\n");
$query = mysql_query("SELECT * FROM devices WHERE device_id = '8'");
$array = mysql_fetch_array($query);
echo($array[1] . "\n");
?>