Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $fivesdrafts = $wpdb->get_results(
- " SELECT `student_id` FROM `fu1sZ_arko_students` WHERE `canexam1` = 1 "
- );
- $out = array(); //putting outside of the loop
- foreach ( $fivesdrafts as $fivesdraft )
- {
- $jor = $fivesdraft->student_id;
- array_push($out, $jor);
- }
- //$tow = implode(',', $out);
- //echo $tow;
- // $people = array("Peter", "Joe", "Glenn", "Cleveland");
- if (in_array("6", $out)) {
- echo " <br/><br/>Match found";
- }
- else {
- echo " <br/><br/>Match not found";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement