summaryrefslogtreecommitdiffstats
path: root/Website/insert.php
diff options
context:
space:
mode:
authorgsmselftest2011-10-28 19:10:01 +0200
committergsmselftest2011-10-28 19:10:01 +0200
commit3905756cb69faec3bdd1198ef41a00ba09d71969 (patch)
tree8f38d2f774ffd1eee07a80fa7e523ffaf357de58 /Website/insert.php
parentMerge branch 'master' of lab.ks.uni-freiburg.de:lsfks/projekte/gsm-selftest (diff)
downloadgsm-selftest-3905756cb69faec3bdd1198ef41a00ba09d71969.tar.gz
gsm-selftest-3905756cb69faec3bdd1198ef41a00ba09d71969.tar.xz
gsm-selftest-3905756cb69faec3bdd1198ef41a00ba09d71969.zip
delete oldbackup file
Diffstat (limited to 'Website/insert.php')
-rw-r--r--Website/insert.php29
1 files changed, 0 insertions, 29 deletions
diff --git a/Website/insert.php b/Website/insert.php
deleted file mode 100644
index dbcec31..0000000
--- a/Website/insert.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
- $con = mysql_connect("localhost","root","mysqlroot11");
- if (!$con) {
-?> <p>There is something wrong about your connection to database!</p>
-<?php }
-
- mysql_select_db("gsmselftesting", $con);
-
- if(!empty($_POST)) {
-
- if($_POST["sip_gsmrz1"]) {
-
- $query1 = "INSERT INTO `TaskTable` (`taskNo`, `from`, `to`) VALUES(5, 'sip', 'gsmRZ1')";
- $result1 = mysql_query($query1);
- $query2 = "SELECT @taskID := LAST_INSERT_ID()";
- $result2 = mysql_query($query2);
- $query3 = "INSERT INTO `TempTaskTable` (`taskID`, `taskNo`, `from`, `to`) VALUES(@taskID, 5, 'sip', 'gsmRZ1')";
- $result3 = mysql_query($query3);
-
- if(!$result1 || !$result2 || !$result3){
- die('Invalid query: ' . mysql_error());
- }
- else {
-?> <p> Relevant information was put in the database! </p>
-<?php }
- }
- }
- mysql_close($con)
-?>