pick number of results of a query with the database using cakephp

Asked

Viewed 200 times

0

I want to make a loop to show the results of a database query, and get the number of results found in the query. I’m using the cakephp. Does it have any function that does the same thing as the mysqli_num_rows?

1 answer

1

  • Hello old7, this link may provide an answer to question but one day it may come to go offline, or the address change, and so the answer will be useless. The best would be for you to post the procedure here.

  • Basically it is to call the Count method in the query result: $result->Count(); The link refers to the Cake PHP documentation

Browser other questions tagged

You are not signed in. Login or sign up in order to post.