Re: [Zope] how to check if the ResultSet is null?

2000-07-14 Thread Robert Wohlfahrt
Hi, > Hi, I still got problems after I changed my code according to your > suggestion. Here is the detail describtion of my code: > In registration form, I have a table which contain a field usr_email > ( > Email Address  > > ) > > This form takes an action i

Re: [Zope] how to check if the ResultSet is null?

2000-07-13 Thread slin
Hi, I still got problems after I changed my code according to your suggestion. Here is the detail describtion of my code: In registration form, I have a table which contain a field usr_email ( Email Address  ) This form takes an action in which I have followin

Re: [Zope] how to check if the ResultSet is null?

2000-07-13 Thread Christopher J. Kucera
> Sa wrote: > > 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 = usr_email type=string>" I want to call this method from my

Re: [Zope] how to check if the ResultSet is null?

2000-07-13 Thread Robert Wohlfahrt
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 = " I want to call this > method from my dtml method and see if it

Re: [Zope] how to check if the ResultSet is null?

2000-07-13 Thread Chris Withers
You could always do something like this first: "select Count(usr_email) from info(table name) where usr_email = " Then check the result will be either 1 or 0. That's asking for trouble 'cos Zope ain't gonna like an id such as 'Count(usr_email)', it's a great idea though :-) Here's how you might

RE: [Zope] how to check if the ResultSet is null?

2000-07-13 Thread Peter Marriott
: Thursday, 13 July 2000 6:04 AMTo: [EMAIL PROTECTED]Subject: [Zope] how to check if the ResultSet is null? 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_ema

[Zope] how to check if the ResultSet is null?

2000-07-12 Thread Sa
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 = " I want to call this method from my dtml method and see if it returns "nu