This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
d
diarmuid
Post
by diarmuid »
hey everybody,
i'm trying to figur out a way to determine how many rows are in a mysql table.
i figured i can use a for loop, i'm just not sure how to go about it, when using mysql :\
any insight would be a great help

-
Papillon
- Owner
- Posts: 724
- Joined: Fri Feb 15, 2002 8:00 pm
- Location: *.no
Post
by Papillon »
just use a while loop
make it check the returnvalue of the row, and aslong as it is valid the loop keeps going
Code: Select all
#something like this =)
set rows 0
while {$rowreturnvalue != {}} {
incr rows
}
Elen sila lúmenn' omentielvo