Received: from flex.flex.ro (flex.flex.ro [193.230.255.2]) by hub.org (8.8.8/8.7.5) with ESMTP id CAA10971 for ; Fri, 29 May 1998 02:49:23 -0400 (EDT) Received: from flex.flex.ro (localhost [127.0.0.1]) by flex.flex.ro (8.8.8/8.7.3) with SMTP id JAA25488; Fri, 29 May 1998 09:47:15 +0300 Sender: teo@flex.flex.ro Message-ID: <356E59F3.321D38F2@flex.ro> Date: Fri, 29 May 1998 09:47:15 +0300 From: Constantin Teodorescu Organization: FLEX Consulting Braila X-Mailer: Mozilla 3.04Gold (X11; I; Linux 2.0.33 i586) MIME-Version: 1.0 To: "Matthew T. O'Connor" CC: "'pgsql-interfaces@hub.org'" Subject: Re: [INTERFACES] Newbie needs help References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Matthew T. O'Connor wrote: > > Any help? I have been reading about the pgsql module for Apache, but I > can't find it. and I have been reading about PHP3 but I'm not sure how > to use it. afiseaza si modifica notita
"; echo "Clic sterge iremediabil notita

"; echo ""; while($i<$nrecs) { echo ""; $i++; } echo "
 DataSubiect 
"; echo ""; echo "",substr(pg_Result($res,$i,"data"),0,16),"",pg_Result($res,$i,"subiect"); echo ""; echo "


"; } ?>
Titlu:
Titlu : $subiect

"; echo "Continut : $continut

"; $dbc=pg_Connect("localhost","5432","","","consiliu"); $res=pg_Exec($dbc,"insert into blocnotes values('$REMOTE_USER','$acum','$subiect','$continut')"); pg_FreeResult($res); pg_Close($dbc); echo "A fost introdus in blocnotes!"; elseif ($argv[0]=="list"): $dbc=pg_Connect("localhost","5432","","","consiliu"); $res=pg_Exec($dbc,"select oid,* from blocnotes where iuzar='$REMOTE_USER' order by data desc"); Listeaza(); pg_FreeResult($res); pg_Close($dbc); elseif ($argv[0]=="show"): $dbc=pg_Connect("localhost","5432","","","consiliu"); $res=pg_Exec($dbc,"select * from blocnotes where oid=$ovar"); echo "Subiect : ",pg_Result($res,0,"subiect"),"

"; echo "Continut :
",pg_Result($res,0,"continut"),"
"; echo "


"; echo "Modifica
"; pg_FreeResult($res); pg_close($dbc); elseif ($argv[0]=="showandchange"): $dbc=pg_Connect("localhost","5432","","","consiliu"); $res=pg_Exec($dbc,"select * from blocnotes where oid=$ovar"); ?>
Titlu: ">

"; echo "Subiect : $subiect

"; echo "Continut :
$continut
"; elseif ($argv[0]=="delete"): $dbc=pg_Connect("localhost","5432","","","consiliu"); $res=pg_Exec($dbc,"delete from blocnotes where oid=$oid"); pg_FreeResult($res); $res=pg_Exec($dbc,"select oid,* from blocnotes where iuzar='$REMOTE_USER' order by data"); Listeaza(); pg_FreeResult($res); pg_Close($dbc); elseif ($argv[0]=="search"): ?>
Cuvint

"; } else { Listeaza(); } pg_FreeResult($res); pg_Close($dbc); } else { echo "

Introduceti macar o litera !

"; } endif; ?> -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA