$db = mysqli_select_db($link, 'id325011_onlinevoting');
$key = 0; foreach($explode as $row) { # Explode the | character $exp = explode('|',$row); # Save the user to the an array $new[$key]['name'] = $exp[0]; $new[$key]['something'] = $exp[3]; $new[$key]['dates'][] = $exp[1]; # Count how many times tried if(!isset($new[$exp[0]]['count'])) { $new[$key]['count'] = 1; } else { $new[$key]['count'] += 1; } $key++; }
array( 'name' => 'John', 'Something' => 'CentaurOne' 'Dates' => array( 0 => '26:Dec:2017:16:09:45' ) )
SELECT * FROM test_category WHERE $value = 't' AND pin = '?'