title: Store Facebook users like
body: <p>I'm working on an application but what i want to do is get the user likes and store it in my database </p>
  
  <p>But when i try to save it in the database it won't insert it in my database</p>
  
  <pre><code>$likes = $facebook-&gt;api('/me/likes');
  
  $fblikes = '';
  
  foreach($likes['data'] as $like){
  
      $fblikes .= $like['name'].', ';
  
  }
  
  $insert = "INSERT INTO users (name, email, gender, liked)
                  VALUES (
                  '$fbname',
                  '$fbemail',
                  '$fbgender',
                  '$fblikes'
                  )";
  
  $add_bericht = mysql_query($insert);
  </code></pre>
  
  <p>But whenever i remove $fblikes from the insert sql it will insert into my database </p>
  
  <p>Any idea's ?</p>