mysql_free_result WHEN?
#1

When to use mysql_free_result? I have to use it and if I make only a query?

Код:
mysql_query("SELECT * FROM `database`);
new rows = mysql_num_rows();

mysql_free_result();
Reply
#2

use it after you store result.
Reply
#3

Scottas, Wrong.
Use it after you no longer need the data you've stored.
Reply
#4

Use caching.
Reply
#5

You really shouldn't be retrieving a whole table in the first place. What are you actually trying to do?
Reply
#6

SELECT count(*) from `table`

I'd rather use that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)