Jump to content

toolip

New Members
  • Posts

    4
  • Joined

  • Last visited

toolip's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I edited the last reponse , please take a look
  2. I don't understand what you mean. the creation of the object is in a core php file in moodle that I am not allowed to edit. something called dblib.php or something like that. i'm working in a file called index.php. that array above is the only thing I have. the object is in there, from reason when I do this: echo mysqli_num_rows($mysqli_native_moodle_recordset->result->mysqli_result); it gives me this: I cannot edit the creation of the object in dblib.php
  3. i don't have access to the object creation itself. I only have the above array I would like to use any method possible to get that value. echo mysqli_num_rows($mysqli_native_moodle_recordset); gave me:
  4. Hi I have this object: mysqli_native_moodle_recordset Object ( [result:protected] => mysqli_result Object ( [current_field] => 0 [field_count] => 22 [lengths] => Array ( [0] => 6 [1] => 1 [2] => 12 [3] => 20 [4] => 0 [5] => 0 [6] => 0 [7] => 0 [8] => 0 [9] => 20 [10] => 7 [11] => 3 [12] => 2 [13] => 2 [14] => 2 [15] => 1 [16] => 1 [17] => 6 [18] => 9 [19] => 1 [20] => 2 [21] => 6 ) [num_rows] => 10 [type] => 0 ) [current:protected] => Array ( [id] => 148722 [picture] => 0 [firstname] => dari [lastname] => bar [firstnamephonetic] => [lastnamephonetic] => [middlename] => [alternatename] => [imagealt] => [email] => [username] => [city] => [country] => [lang] => [timezone] => [maildisplay] => [hidden] => 1 [ctxid] => 455402 [ctxpath] => [ctxdepth] => [ctxlevel] => [ctxinstance] => 148722 ) ) How do I get the value of "num_rows" (which is '10') ? I tried this: $mysqli_native_moodle_recordset->result->num_rows but got an error message:
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.