• Resolved kskerp

    (@kskerp)


    I need to access every student’s: student_id.

    I thought:

    $student->ID or $student->student_id

    would be the correct way to obtain this attribute, but nothing is being returned so I am assuming that these were stored differently. Could you please give information on how to access the student_id from $student ?

    <?php echo $student->ID?>

    https://www.ads-software.com/plugins/namaste-lms/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kskerp

    (@kskerp)

    or how to access student_id from any object?

    Plugin Author Bob

    (@prasunsen)

    print_r($student) and you’ll see what’s inside.

    Thread Starter kskerp

    (@kskerp)

    I thought of that earlier.. it was only displaying the number 1..

    I got it to work and found everything I needed.

    post_author was all the information I truly needed..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Trouble accessing student_id’ is closed to new replies.