summaryrefslogtreecommitdiffstats
path: root/Website/insertData.php
diff options
context:
space:
mode:
Diffstat (limited to 'Website/insertData.php')
-rw-r--r--Website/insertData.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/Website/insertData.php b/Website/insertData.php
index 6a9bdb4..2facf1c 100644
--- a/Website/insertData.php
+++ b/Website/insertData.php
@@ -1,18 +1,5 @@
<?
-/*
-//Connection stuff
-//DB
-$dbhost = 'localhost';
-$dbuser = 'root';
-$dbpass = 'randompasswordSQL';
-
-$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die('Error connecting to mysql');
-
-$dbname = 'gsmselftesting';
-mysql_select_db($dbname);
-//End of connection stuff
-*/
function getNewTaskNo()
{
$sql = "SELECT MAX(taskNo) FROM TaskTable"; //the SQL command to find the max value in taskNo
@@ -78,5 +65,5 @@ function insertTask($taskNo, $from, $to)
return 0; //nothing was added to the table, some error occured
}
}
- //include 'post.php';
+
?>