81
rated 0 times
[
83]
[
2]
/ answers: 1 / hits: 37621
/ 11 Years ago, wed, august 14, 2013, 12:00:00
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.
Here's my 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.
});
});
I need to put
$src =images/products/.mysql_result($execute_select_product_query,0,'image1').
in my function where I put PHP variable.
More From » php