Hi.
I want to test if there is some data in a table.
If so, I want to perform some action, otherwise I wan't to print out a message.
(dtml-if..dtml-else../dtml-if)
My SQL statement is something like:
Select count(*) from my_table where my_field = something
What DTML code do I need to perform
al Message-
From: zope [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: 15 íîÿáðÿ 2000 ã. 19:38
Subject: [Zope] DTML and SQL question...
Hi.
I want to test if there is some data in a table.
If so, I want to perform some action, otherwise I wan't to print out a
message.
(dtml-if.
if sequence-startYES! There's some data!/dtml-if
dtml-else
no records found!
/dtml-in
hth
- Original Message -
From: "zope" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 15, 2000 4:22 PM
Subject: [Zope] DTML and SQL question...
| Hi.
|
| I want to test if