Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to i passing row from mysql database into div popup via using javascript or jquery
    primarykey
    data
    text
    <p>i need help to passing row from mysql database into div popup window? </p> <p>how do i passing <code>product id</code> into popup div which i called through <code>&lt;a href="#shirt" class="view_btn"&gt;View&lt;/a&gt;</code>?</p> <p><strong>For Example I Want Like This</strong></p> <pre><code>i want to fetch product details into `product quick view popup window` through product `ID`? </code></pre> <p><strong>Here My Code</strong></p> <pre><code> &lt;div class="latest_products_sec"&gt; &lt;div class="latest_products"&gt; &lt;div class="title_box"&gt; &lt;/div&gt; &lt;!--Latest Products Slider --&gt; &lt;div class="latest_pro_box"&gt; &lt;h4&gt;&lt;a href="detail.html"&gt;Latest Shirt's Collection&lt;/a&gt;&lt;/h4&gt; &lt;div class="latest_products_slider"&gt; &lt;?php $queryshirt=mysql_query("select image,id from products where cid='1' LIMIT 5") or die ('die shirt query'); while($rowshirt=mysql_fetch_array($queryshirt)) { echo '&lt;ul&gt;'; echo '&lt;li&gt;&lt;img src="admin/'.$rowshirt['image'].'" width="225" height="300" alt="" /&gt; &lt;a href="#shirt" class="view_btn"&gt;View&lt;/a&gt;&lt;/li&gt;'; echo '&lt;/ul&gt;';?&gt; } ?&gt; </code></pre> <p><strong>#shirt Div Popup Window</strong></p> <pre><code> &lt;div id="shirt" class="proquickview"&gt; &lt;span class="close_btn" onclick="parent.jQuery.fancybox.close();"&gt;Close&lt;/span&gt; &lt;h2 class="title"&gt;quick view&lt;/h2&gt; &lt;div class="quickviewinfo"&gt; &lt;?php // I Need To Get ID Here echo $id=$_REQUEST['id']; ?&gt; &lt;div class="quickviewinforight"&gt; &lt;div class="titlerow"&gt; &lt;h2&gt;Latest Shirt's Collection&lt;/h2&gt; &lt;div class="start_ratings"&gt; &lt;div class="start_rating"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div&gt; &lt;div class="quick_review"&gt; &lt;h3&gt;Quick Discription&lt;/h3&gt; &lt;p&gt;TEST.&lt;/p&gt; &lt;/div&gt; &lt;div class="qty_row"&gt; &lt;div class="qty_field"&gt; &lt;label&gt;Select Quantity&lt;/label&gt; &lt;span&gt; &lt;select name="S"&gt; &lt;option&gt;5&lt;/option&gt; &lt;/select&gt; &lt;/span&gt; &lt;/div&gt; &lt;br class="clear" /&gt; &lt;span class="total_price"&gt;Price &lt;strong&gt;$88.00&lt;/strong&gt; &lt;del&gt;$102.00&lt;/del&gt;&lt;/span&gt; &lt;a href="cart.html" class="add_cart_btn"&gt;ADD TO CART&lt;/a&gt; &lt;/div&gt; &lt;div class="total_price_row"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>Javascript For Popup Window</strong></p> <pre><code>$(document).ready(function() { $(".view_btn").fancybox({ 'titlePosition' : 'inside', 'transitionIn' : 'none', 'transitionOut' : 'none' }); }); $(document).ready(function(){ // Cufon Functions // Cufon.replace ('.latest_products_slider ul li a.view_btn',{hover:true}); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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