[Zope] MySQL Methods and Names?

Glenn Williams gloonie@netscape.net
18 Jan 00 10:20:29 GMT


Hi All,

I have been setting up a MySQL database for book selling, and came across what
seems to be a slight problem. I have a table with a column called 'title'.
When I wrote the ZSQL method, using the following code:

SELECT title FROM titles
WHERE 
      <dtml-sqltest title
                    column=title
                    op=like
                    type=string>

if the user hits RETURN without entering a value for title, Zope seems to look
up the folder hierarchy and insert the title of the document. That seems
reasonable, but how do I prevent that from happening?

Thanks,

Glenn


Advanced Decisions Inc.
Running S.u.S.E. Linux 6.3, KDE and Xitami

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com.