cache_get_row_count
#1

Hi. I want to know how much row i have in _houses table.

if i use printf("There are %d rows in the current result set.", cache_get_row_count());:
with 0 house: There are 0 rows in the current result set.
with 1 house: There are 0 rows in the current result set.
with 2 houses: There are 0 rows in the current result set.
...

How i can find how many lines are in _houses? because i want to add a new line at the end
Reply
#2

Make sure you use a SELECT in a query before you do that.
For example SELECT * FROM `_houses` WHERE 1 = 1
Reply
#3

Oh.. thanks .. now, it's working.

+REP!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)