Click here to Skip to main content
15,888,254 members

Comments by EZW (Top 55 by date)

EZW 14-Jan-18 0:08am View    
Just in case FYI: Mail doesn't work (usually) on a localserver. You need a domain with available services for mail to work. SMTP/POP server, something like that. Not sure for certain. All competitive host would have mail working.
EZW 9-Jan-18 1:54am View    
Try
$db = mysqli_select_db($link, 'id325011_onlinevoting');
EZW 9-Jan-18 1:53am View    
Is this in a PHP file format and run on a PHP enabled server?
EZW 9-Jan-18 1:50am View    
Looks like the database was poorly planned and needs to be redesigned
EZW 9-Jan-18 1:45am View    
In your case that should look something like:

$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++;
}