summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/main.php
diff options
context:
space:
mode:
authorgsmselftest2011-10-26 17:35:19 +0200
committergsmselftest2011-10-26 17:35:19 +0200
commitc9b8c11422cc512e96140f0cac7daece1fb90c52 (patch)
treeac8579aead8e13f53d4584f7a67ac7b35cbdda41 /For Weekly Test/tricode/main.php
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-c9b8c11422cc512e96140f0cac7daece1fb90c52.tar.gz
gsm-selftest-c9b8c11422cc512e96140f0cac7daece1fb90c52.tar.xz
gsm-selftest-c9b8c11422cc512e96140f0cac7daece1fb90c52.zip
back file and edit some file
Diffstat (limited to 'For Weekly Test/tricode/main.php')
-rw-r--r--For Weekly Test/tricode/main.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/For Weekly Test/tricode/main.php b/For Weekly Test/tricode/main.php
index 7ba2964..91f5938 100644
--- a/For Weekly Test/tricode/main.php
+++ b/For Weekly Test/tricode/main.php
@@ -2,6 +2,11 @@
$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]'";
@@ -20,7 +25,7 @@ if (isset($_REQUEST['Submit']))
<tr>
<td height="100px" width ="120px" align="left">
<font size="3" face="Century Gothic" color="LightGray">
- <form action="" method="POST">
+ <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>