projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43701d6
)
Move db connect up
author
Joey Schulze
<joey@infodrom.org>
Wed, 13 Aug 2008 10:58:22 +0000
(10:58 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 13 Aug 2008 10:58:22 +0000
(10:58 +0000)
src/Infodrom/events/update.wml
patch
|
blob
|
history
diff --git
a/src/Infodrom/events/update.wml
b/src/Infodrom/events/update.wml
index
3f4be66
..
47df4eb
100644
(file)
--- a/
src/Infodrom/events/update.wml
+++ b/
src/Infodrom/events/update.wml
@@
-1,6
+1,12
@@
#include <infodrom.style>
#include <phptools.inc>
+<?
+ $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
+ or die("Unable to connect to SQL server");
+
+?>
+
<page func="Infodrom Oldenburg" title="Events">
<sql_prepare>
@@
-13,9
+19,6
@@
}
}
- $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
- or die("Unable to connect to SQL server");
-
bomb_if_empty ($_POST[name], "Name");
bomb_if_empty ($_POST[country], "City");
bomb_if_empty ($_POST[country], "Country");