I have a previous query in which I return certain student_id numbers in an array called $student_id. This array could contain 10 to 30 values in it.
I would then like to query a different table so that I can return the student info based on the values in the $student_id array. The values in $student_id are related to the field ID in the student_main table.
$query_student_display = sprintf("SELECT * FROM student_main WHERE ID ... ");
"..." would be the info from my $student_id array.
Any ideas?