ショッピング カートでズーム ツールを開発していますが、jQuery 関数で PHP 変数を呼び出す方法に行き詰まっています。
これが私のコードです:
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.
});
});
私は置く必要があります
$src ="images/products/".mysql_result($execute_select_product_query,0,'image1')."
私の関数では、PHP変数を配置しました。