Will you please please tell me how to get java variable "data_id" value in PHP Variable "$gal_id" i m not able pass the value of java variable into PHP Variable so please also let me know if you find the solution
JS IN Head
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="js/jquery.colorbox.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//Examples of how to assign the Colorbox event to elements
$(".inline").colorbox({inline:true, width:"70%", height:"500px;"});
});
</script>
HTML
<li><a class='inline' href="#inline_content" data-id="1">ABC</a></li>
<li><a class='inline' href="#inline_content" data-id="2">DEF</a></li>
<li><a class='inline' href="#inline_content" data-id="3">XYZ</a></li>
POPUP Box
<script type="text/javascript">
$('.inline').click(function(){
var data_id = $(this).data('id');
$('#idvalue').html(""+data_id);
});
</script>
<div style='display:none'>
<div id='inline_content'>
<span id="idvalue"></span><!--we'll get here data_id value of clicked list in output -->
<?php
$gal_id = ""; // Will you please please tell me how to get java variable "data_id" value here from above js
$check = mysql_query("select * from img where id = '$gal_id'");
while ($run = mysql_fetch_array($check)){
.
.
.
}?>
</div>
</div>