summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'For Weekly Test/tricode/main.php')
-rw-r--r--For Weekly Test/tricode/main.php59
1 files changed, 0 insertions, 59 deletions
diff --git a/For Weekly Test/tricode/main.php b/For Weekly Test/tricode/main.php
deleted file mode 100644
index 91f5938..0000000
--- a/For Weekly Test/tricode/main.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?
-$db = mysql_connect("localhost","root","randompasswordSQL");
-mysql_select_db("gsmselftesting",$db);
-
-$link = $db ;
-if (!$link) {
- die('Could not connect: ' . mysql_error());
-}
-echo 'Connected successfully';
-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">
- <font size="3" face="Century Gothic" color="LightGray">
- <form action="" method="POST">
- <input type="radio" name="device" value="GSMRZ1" /> RZ GSM 1<br>
- <input type="radio" name="device" value="GSMext.Eplus" /> E-Plus<br>
- <input type="radio" name="device" value="GSMext.O2" /> O2<br>
- <input type="radio" name="device" value="GSMext.Voda" /> Vodaphone<br>
- <input type="radio" name="device" value="GSMext.Tm" /> T-Mobile<br>
-
- </font>
- </td>
- <td height="100px" width ="100px" align="left">
- <font size="3" face="Century Gothic" color="LightGray">
- Port Number<br>
- IMEI<br>
- Number<br>
- </font>
- </td>
- <td height="100px" width ="90px" align="left">
- <font size="3" face="Century Gothic" color="LightGray">
- : <input type="text" name="portname" /></br>
- : <input type="text" name="imei" /><br>
- : <input type="text" name="number" /><br>
- </font>
- </td>
- <td height="100px" width ="50px" align="left">
- <font size="3" face="Century Gothic" color="LightGray">
- <INPUT type="image" value="submit" name="submit" src="Images/SubmitButton.png"><br />
- </font>
- </td>
-
- </form>
- </tr>
- </table>