Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
safe_rows() vs. safe_rows_start()
Any reason to use safe_rows_start()
in preference to safe_rows()
? As far as I can tell they’re the same except the latter also goes through mysql_free_result()
. Is it a question of performance, i.e. only use safe_rows()
where you expect very large sets of records? Or is it more a case of six of one, half a dozen of the other? Why have both functions?
Code is topiary
Offline
Re: safe_rows() vs. safe_rows_start()
safe_rows_start returns a link identfier (and is typically used in combination with the nextRow function), while safe_rows returns an associative array. Quite different.
Offline
Re: safe_rows() vs. safe_rows_start()
Once again, thanks for the helpful explanation. Gotta pay closer attention…
Code is topiary
Offline