PHP Medoo - num行

Is it possible to get number of selected rows using Medoo? I havent found anything about it in the documentation.

Like num_rows() in mysqli or rowCount in pdo.

Answered on official Github ticket #195

https://github.com/catfan/Medoo/issues/195

If you are using medoo->select you can use count to check the size of the returned array: http://php.net/manual/en/function.count.php

Use select count(ID) in your query

$query= "SELECT COUNT(id) FROM socialpic WHERE social_id=$eventid";

$database = new medoo();

$data = $database->query($query)->fetchAll();

so you will get $data in array... then you can count them with simple function.

$rowcount = count($data);