Jump to content

Array extraction & variables


mdavenpo
Go to solution Solved by Barand,

Recommended Posts

Please forgive me if i have posted something that has been answered before, i'm unsure of what this would be called so i didn't know what search term to use but couldn't find any other information.

 

============================ QUESTION ==========================
I have a simple PHP array which is pulled from a SQL JOIN query:

 

[0] id                                //standard table  unique id

[1] email                          //teachers email

[2] student_email            // student email

[3] provider                     // who the provider of the qualification is.

[4] course                       // what qualification is being undertaken.

[5] subject                      // subject of the course.

[6] status                       // marking is either Done or To Resubmit.

 

what i'm trying to do is use the array to calculate how many 'Done' status for each student_email and display so i think i need to somehow put something into variables but im confused on how to achieve this.

 

I'm trying to display on a teachers dashboard a table that shows students near completion.

which would show:
 

Student_email        Provider      Course            Assessments_completed (done status)

foo@bar.com         school1       Business                             29

bar@foo.com         school2       Management                      31

 

 

 

And in advance im so sorry if i have this post in the wrong place as this is the first time ive posted a forum anywhere.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.