[Zope] Zope, ZSQL and Gadfly

Kamal Gill kgill at ucdsom.ucdavis.edu
Fri Oct 3 12:10:06 EDT 2003


Stefano,

First, change your ZSQL method to..

     SELECT COUNT(*) AS TOTAL FROM NAMES

Next, reference the result of your ZSQL method in your DTML document as 
follows..

   <dtml-in myZSQLmethod>
    <dtml-var TOTAL>
   </dtml-in>

- Kamal

On Friday, October 3, 2003, at 07:32  AM, Stefano Sasso wrote:

> Hello!!
>
> How can I put in a var. (of a DTML page) the result of the following 
> ZSQL
> query?
>
> "SELECT COUNT(*) FROM NAMES"
>
> Thanks so much!
>
> bye
>
> Stefano Sasso
>
> (Ps: excuse me for my english but I'm italian and I don't know it very 
> well)
>
>
>
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>




More information about the Zope mailing list