title: Getting error while click on a button using PHP and MongoDB
body: <p>I am getting following  error while clicking on edit button while using PHP and MongoDB.</p>
  
  <blockquote>
    <p>Error:</p>
  </blockquote>
  
  <pre><code>category.php:235 Uncaught SyntaxError: missing ) after argument list
  </code></pre>
  
  <p>I am explaining my code below.</p>
  
  <blockquote>
    <p>category.php:</p>
  </blockquote>
  
  <pre><code>&lt;?php
   $listdata=$db-&gt;kf_category-&gt;find();
                                      // print_r(iterator_to_array($listdata));exit;
   $counter = 1;
   foreach($listdata as $v){
   $id=$v['_id'];
  $edit=1;
   $del=0;
   echo "&lt;tr&gt;
   &lt;td&gt;".$counter++."&lt;/td&gt;
  &lt;td&gt;".$v['cat_title']."&lt;/td&gt;
  &lt;td&gt;
   &lt;select class='form-control' id='status1' name='status1'  style='height:23px; padding:0px;'&gt;
   &lt;option value=''&gt;Select Status&lt;/option&gt;
   &lt;option value='1' " . ($v['status']=='1'?'selected':'') . "&gt;Enable&lt;/option&gt;
   &lt;option value='0' " . ($v['status']=='0'?'selected':'') . "&gt;Disable&lt;/option&gt;
   &lt;/select&gt;
   &lt;/td&gt;
  &lt;td&gt;
  &lt;img src='uploads/".$v['image']."' name='pro' border='0' style='width:50px; height:50px; border:#808080 1px solid;' /&gt;
   &lt;/td&gt;
   &lt;td&gt;
  ".$v['cat_description']."
   &lt;/td&gt;
  &lt;td&gt;
  &lt;button type='button' class='btn btn-xs btn-green outlinedivnone' data-placement='top' title=''   data-original-title='Edit' onClick='javascript:changeOfActionMenu($id,$edit);'&gt;&lt;i class='fa fa-pencil'&gt;&lt;/i&gt; &lt;/button&gt; 
  &lt;button type='button' class='btn btn-xs btn-danger outlinedivnone' data-placement='top' title=''  data-original-title='Delete' onClick='javascript:changeOfActionMenu($id,$del);'&gt;&lt;i class='fa fa-times'&gt;&lt;/i&gt; &lt;/button&gt;
  &lt;/td&gt;
  &lt;/tr&gt;";
   }
  ?&gt;
  </code></pre>
  
  <p>When user is clicking on edit icon the above error is coming in the console.Please help me to resolve this error.</p>