/[pliva-si]/back/contact/global.inc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /back/contact/global.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Jan 7 14:29:44 2002 UTC (22 years, 3 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
fix delete query

1 <?
2
3 $phormationdir = "../phormation";
4 $DB = "pgsql";
5
6 //-------------------------------------------------------------------
7
8 $table="emails";
9
10 $params["query"] = "select referer,email from emails";
11 $params["defaultsort"] = "referer";
12 $params["key"] = "referer";
13 $params["delquery"] = "delete from $table where ".$params["key"]." = ";
14
15 //-------------------------------------------------------------------
16
17 $fields[] = "referer"; $names[] = "Section from";
18 $types[]="type=fkey&table=menu&query=select distinct section,upper(section) as desc from menu order by section&pkey=section&desc=desc";
19
20 $fields[] = "email"; $names[] = "Mail to:";
21 $types[]="type=text&width=50&height=4&length=8192";
22
23 //-------------------------------------------------------------------
24
25 $conn = pg_connect( "dbname=plivasi user=dpavlin" );
26 if( !$conn ) {
27 echo "Couldn't connect to database!<BR>";
28 } else {
29 $result=pg_Exec($conn,"set datestyle = 'german'");
30 }
31
32 //-------------------------------------------------------------------
33
34 ?>

  ViewVC Help
Powered by ViewVC 1.1.26