summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Website/insertdevice.php
diff options
context:
space:
mode:
Diffstat (limited to 'Under-Testing/Website/insertdevice.php')
-rw-r--r--Under-Testing/Website/insertdevice.php28
1 files changed, 0 insertions, 28 deletions
diff --git a/Under-Testing/Website/insertdevice.php b/Under-Testing/Website/insertdevice.php
deleted file mode 100644
index 7875891..0000000
--- a/Under-Testing/Website/insertdevice.php
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-include 'dbconnection.php';
-
-$db = mysql_connect($dbhost,$dbuser,$dbpass);
-mysql_select_db($dbname,$db);
-
-$link = $db;
-if (!$link) {
- die('Could not connect: ' . mysql_error());
-}
-
-else {
- $sql="UPDATE DeviceAddressTable SET portName = '$_REQUEST[portname]', number = '$_REQUEST[number]' WHERE deviceName = '$_REQUEST[device]'";
-
- if($result = mysql_query($sql ,$db))
- {
- $message = '<font size="3" face="Century Gothic" color="LightGray"> UPDATE Device Succeed</font>';
- }
- else
- {
- $message = 'ERROR: '.mysql_error();
- }
- header('Location: http://132.230.4.202/tricode/devconfigManual.php');
- }
-
-mysql_close($con)
-
-?>