title: Calling a PHP variable in jQuery
body: <p>I'am developing a zoom tool in my shopping cart and I am stuck on how to call a PHP variable in a jQuery function.</p>
  
  <p>Here's my code :</p>
  
  <pre><code>jQuery(document).ready(function($){
  $('#image1').addimagezoom({ // single image zoom
      zoomrange: [3, 10],
      magnifiersize: [800,300], 
      magnifierpos: 'right',
      cursorshade: true,
      largeimage: "php variable" //we add the directory of the image.
  });
  });
  </code></pre>
  
  <p>I need to put </p>
  
  <pre><code>$src ="images/products/".mysql_result($execute_select_product_query,0,'image1')."
  </code></pre>
  
  <p>in my function where I put PHP variable.</p>