Need to run a mysql SELECT through PHP where two arrays equal one another.
$sql = "SELECT * FROM around WHERE 'array_intersect($ar1, $ar2)'";
$resultsd = $conn->query($sql);
foreach($resultsd as $rowd) {
$sword[] = $rowd['TIM'];
}
After the match is found, need to pull from that particular row in mysql. This needs to be in PHP.
Arrays are from:
$ar1 = array();
$sql = "SELECT * FROM blc WHERE ffv='$safe_username'";
$results = $conn->query($sql);
foreach($results as $row) {
$ar1[] = $row['vvvs'];
}