summaryrefslogtreecommitdiff
path: root/doc/nils-diplom/Dateistruktur/connect.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-30 15:43:52 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-30 15:43:52 +0100
commit8ea6ea6db019f68436a69f36aae55a9f205efa35 (patch)
tree5c367520523c42b1935491d199b4e8f3c17b4708 /doc/nils-diplom/Dateistruktur/connect.php
parentec6e82dbcdc153b9973240cdff91a03b6d2dc886 (diff)
downloadsqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.tar.gz
sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.tar.bz2
sqltutor-plugin-8ea6ea6db019f68436a69f36aae55a9f205efa35.zip
doc: Nils Weber doesnt have an 'e' in his firstname
Diffstat (limited to 'doc/nils-diplom/Dateistruktur/connect.php')
-rwxr-xr-xdoc/nils-diplom/Dateistruktur/connect.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/doc/nils-diplom/Dateistruktur/connect.php b/doc/nils-diplom/Dateistruktur/connect.php
new file mode 100755
index 0000000..aeb191f
--- /dev/null
+++ b/doc/nils-diplom/Dateistruktur/connect.php
@@ -0,0 +1,43 @@
+<?php
+
+$dbuser="nils";
+$dbpass="dbprakt";
+/* Datenbanklogin */
+
+$createuser="creator";
+$createpass="creator";
+/* Datenbanklogin */
+
+
+PutEnv("TWO_TASK=dbprakt");
+
+
+function dbconnect($sql)
+{
+
+
+ global $dbuser, $dbpass;
+
+ $con = OCILogon($dbuser, $dbpass);
+
+ $stmt = OCIParse($con, $sql);
+
+ return $stmt;
+
+ OCILogoff($con);
+}
+
+function createconnect($sql)
+{
+
+
+ global $createuser, $createpass;
+
+ $con = OCILogon($createuser, $createpass);
+
+ $stmt = OCIParse($con, $sql);
+
+ return $stmt;
+
+ OCILogoff($con);
+} \ No newline at end of file