[Zope] DTML and SQL question...

2000-11-15 Thread zope
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

Re: [Zope] DTML and SQL question...

2000-11-15 Thread Pavel
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.

Re: [Zope] DTML and SQL question...

2000-11-15 Thread Phil Harris
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