Counting Occurrences within an If statement
- From: mbomgardner@xxxxxxxxx ("Mark Bomgardner")
- Date: Sun, 20 Jul 2008 18:44:11 -0500
I have been working on the something for the last day and can't figure it
out.
I am pulling 7500 rows from a MySQL database, but I only want to display a
certain numbers of rows based up an if statement. I want to count the rows
within the if statement.
mysql query result
if(x < y){
display a row in a table
}else{
Don't display anything
}
Every time a row is displayed, I want to add one to a counter
markb
- Follow-Ups:
- Re: [PHP] Counting Occurrences within an If statement
- From: Micah Gersten
- Re: [PHP] Counting Occurrences within an If statement
- Prev by Date: Re: [PHP] php help.
- Next by Date: Re: [PHP] Counting Occurrences within an If statement
- Previous by thread: [HTML MAIL FORM] - Body text not coming through
- Next by thread: Re: [PHP] Counting Occurrences within an If statement
- Index(es):
Relevant Pages
|