[Zope] how to check if the ResultSet is null?
Robert Wohlfahrt
robert.wohlfahrt@sachsen-net.com
Thu, 13 Jul 2000 14:27:19 +0200
Hi,
>
> Hi, I stuck on a problem: I am creating a registration form. I need
> to check if the person info has already in database. I created a Z SQL
> method which I used "select usr_email from info(table name) where
> usr_email = <dtml-sqlvar usr_email type=string>" I want to call this
> method from my dtml method and see if it returns "null". But I'm not
> sure how to implement this. In Java, it has ResultSet which I can
let's say, you called your ZSQL-method "getThisAddress"
then you can do something like this:
<dtml-if getThisAddress>
You are already in the database
</dtml-if>
Robert
--
Robert Wohlfahrt (robert.wohlfahrt@sachsen-net.com)
Tel: 0179 / 2980074 Fax: 0351 / 2880145