title: Is there some way to adding a link (contain php) in Javascript?
body: <p>I just can't input my link + php code in javascript. pls help me</p>
  
  <p>i dont know why im a beginner</p>
  
  <p>i just want to add this link === </p>
  
  <pre><code>detail.php?id=&lt;?php echo $perproduct["id_product"]; ?&gt;
  </code></pre>
  
  <p>to "HERE~" pls look at the img href === </p>
  
  <pre><code>$output .= '
          &lt;div class="col-sm-4 col-lg-3 col-md-4"&gt;
              &lt;div style="border:1px solid #ccc; border-radius:5px; padding:16px; margin-bottom:16px; height:450px;"&gt;
                  &lt;img src="photo_product/'. $row['photo_product'] .'" alt="" class="img-responsive" &gt;
                  &lt;p align="center"&gt;&lt;strong&gt;&lt;a href="HERE~"&gt;'. $row['name_product'] .'&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
                  &lt;h4 style="text-align:center;" class="text-danger" &gt;'. $row['price_product'] .'&lt;/h4&gt;
                  &lt;p&gt;Camera : '. $row['camera_product'].' MP&lt;br /&gt;
                  Brand : '. $row['brand_product'] .' &lt;br /&gt;
                  RAM : '. $row['ram_product'] .' GB&lt;br /&gt;
                  Storage : '. $row['storage_product'] .' GB &lt;/p&gt;
              &lt;div class="add"&gt; &lt;br&gt;
              &lt;a href="#" class="btn btn-success"&gt;Pre-Order&lt;/a&gt;
              &lt;/div&gt;
              &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
          ';
  </code></pre>