something like this (assuming vbscript):

Dim pos = 1
Dim cnt = 0
Do
        pos = InStr(field, "<br>", pos)
        If pos > 0 Then
                cnt = cnt + 1
                pos = pos + 3 'get past the current one
        Else
                break
        End If
Loop
'at this point, cnt holds your answer

-----Original Message-----
From: Deryck Henson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 16, 2001 7:00 PM
To: [EMAIL PROTECTED]
Subject: Re: How to count the number of ,br>'s in multiple records
Importance: High


ASP

- Deryck H
- http://www.comp-u-exchange.com
----- Original Message -----
From: "Jeremy Zawodny" <[EMAIL PROTECTED]>
To: "Deryck Henson" <[EMAIL PROTECTED]>
Cc: "MySQL" <[EMAIL PROTECTED]>
Sent: Sunday, September 16, 2001 5:45 PM
Subject: Re: How to count the number of ,br>'s in multiple records


> On Sun, Sep 16, 2001 at 05:22:53PM -0500, Deryck Henson wrote:
> >
> > How do I count the number <br>'s in each record in a field?
>
> Using what programming language?
> --
> Jeremy D. Zawodny, <[EMAIL PROTECTED]>
> Technical Yahoo - Yahoo Finance
> Desk: (408) 349-7878   Fax: (408) 349-5454   Cell: (408) 685-5936
>
> MySQL 3.23.41-max: up 10 days, processed 200,628,017 queries (215/sec.
avg)
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to