title: Problems with array error
body: <p>Hello stackoverflow people, can you help me with this error, </p>
  
  <blockquote>
    <p>Warning: array_combine() expects parameter 2 to be array, null given
    in</p>
  </blockquote>
  
  <pre><code>$check = mysql_query("SELECT user_task_types, user_task_types_id FROM dotp_user_task_type WHERE user_id = '$user_id'");
  $row[] = mysql_fetch_array($check);
  $check = array_combine($row[0], $row[1]);
  </code></pre>
  
  <p>Cant understand what is wrong with it. Ive tried doing [] this so it would be array but still nothng. My array looks like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; TVS darbai
      [user_task_types] =&gt; TVS darbai
      [1] =&gt; 14
      [user_task_types_id] =&gt; 14
  )
  </code></pre>
  
  <p>I want to connect user task type id with user task types it would look like [14] => TVS darbai</p>