Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook comments on a popup div
    text
    copied!<p>i have a problem with facebook comments and displaying them on a popup div. The problem is they share same comments but i have different data-href. Here is my code:</p> <pre><code>$query_pag_data = "SELECT ID_Story,Story,Down,Up from Story LIMIT $startrow, $nr_evenimente_pagina"; $result_pag_data = mysql_query($query_pag_data) or die('MySql Error' . mysql_error()); $msg = ""; echo'&lt;div id="story"&gt;&lt;div id="header_title"&gt;&lt;h2&gt;Love Lock Stories&lt;/h2&gt; &lt;h3&gt;Whats your story?&lt;/h3&gt;&lt;/div&gt;'; while ($row = mysql_fetch_array($result_pag_data)) { echo' &lt;div class="story_container"&gt; &lt;h1&gt;test&lt;/h1&gt;&lt;br&gt; &lt;p&gt;'.$row['Story'].'&lt;/p&gt; &lt;p&gt; &lt;a href = "javascript:void(0)" onclick = "document.getElementById(\'light\').style.display=\'block\';document.getElementById(\'fade\').style.display=\'block\'"&gt;Click here for facebook comments&lt;/a&gt;&lt;/p&gt; &lt;div id="light" class="white_content"&gt;&lt;div class="fb-comments" data-href="http://websoftit.ro/lackoflove/story.php?active=2&amp;id='.$row['ID_Story'].'" data-numposts="3" data-width="400" data-colorscheme="light"&gt;&lt;/div&gt; &lt;a href = "javascript:void(0)" onclick = "document.getElementById(\'light\').style.display=\'none\';document.getElementById(\'fade\').style.display=\'none\'"&gt;Close&lt;/a&gt;&lt;/div&gt; &lt;div id="fade" class="black_overlay"&gt;&lt;/div&gt; '; echo'&lt;/div&gt;&lt;/div&gt;'; } </code></pre> <p>Here is the link where i have the comments <a href="http://websoftit.ro/lackoflove/story.php?active=2&amp;pag=1" rel="nofollow">Link</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload