does anybody know what's wrong with this? once i add the last insert (column mem_ids and the value of '{$_SESSION['mem_id']}') it stopped working. I've tried the value with and without quotes.
$query = "INSERT INTO uploads (file_name, file_size, file_type, description, upload_date, mem_ids)
VALUES ('{$FILES['upload']['name']}', {$FILES['upload']['size']},
'{$FILES['upload']['type']}', '$d', NOW()), '{$SESSION['mem_id']}'";