summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/insertdevice.php
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/tricode/insertdevice.php')
-rw-r--r--For Weekly Test/tricode/insertdevice.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/For Weekly Test/tricode/insertdevice.php b/For Weekly Test/tricode/insertdevice.php
deleted file mode 100644
index b3f7350..0000000
--- a/For Weekly Test/tricode/insertdevice.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-$con = mysql_connect("localhost","root","randompasswordSQL");
-if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
-
-mysql_select_db("gsmselftesting", $con);
-$sql="UPDATE DeviceAddressTable SET portName = '$_POST[portname]', number = '$_POST[number]' WHERE deviceName = '$_POST[device]'";
-
-
-if (!mysql_query($sql,$con))
- {
- die('Error: ' . mysql_error());
- }
-else
-{
-echo "1 record added";
-}
-mysql_close($con)
-?> \ No newline at end of file