summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/main.php
diff options
context:
space:
mode:
authorTriatmoko2011-10-26 10:48:41 +0200
committerTriatmoko2011-10-26 10:48:41 +0200
commite205a0c5ae263e36481bf75ba6b91bff041ed3ac (patch)
treed63bc9a1abacd226885de3d5f37b34b17d151eb4 /For Weekly Test/tricode/main.php
parentupdate devices (diff)
downloadgsm-selftest-e205a0c5ae263e36481bf75ba6b91bff041ed3ac.tar.gz
gsm-selftest-e205a0c5ae263e36481bf75ba6b91bff041ed3ac.tar.xz
gsm-selftest-e205a0c5ae263e36481bf75ba6b91bff041ed3ac.zip
dev conf
lease enter the commit message for your changes. Lines starting
Diffstat (limited to 'For Weekly Test/tricode/main.php')
-rw-r--r--For Weekly Test/tricode/main.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/For Weekly Test/tricode/main.php b/For Weekly Test/tricode/main.php
index 60cef31..7ba2964 100644
--- a/For Weekly Test/tricode/main.php
+++ b/For Weekly Test/tricode/main.php
@@ -1,3 +1,21 @@
+<?
+$db = mysql_connect("localhost","root","randompasswordSQL");
+mysql_select_db("gsmselftesting",$db);
+
+if (isset($_REQUEST['Submit']))
+ {
+ $sql="UPDATE DeviceAddressTable SET portName = '$_POST[portname]', number = '$_POST[number]' WHERE deviceName = '$_POST[device]'";
+ if($result = mysql_query($sql ,$db))
+ {
+ $message = '<font size="3" face="Century Gothic" color="LightGray"> UPDATE Device Succeed</font>';
+ }
+ else
+ {
+ echo "ERROR: ".mysql_error();
+ }
+ }
+
+?>
<table style="width:50%; margin:auto" border="0">
<tr>
<td height="100px" width ="120px" align="left">