I have a PHP page with the following URL:
http://xyz.com/dev/gallery.php?k=1&s=35
The following Javascript file is included on the PHP page:
<script type="text/javascript" src="js/some-js-file.php"></script>
The some-js-file.php needs to be filled dynamically using PHP:
jQuery(function($){$.supersized({
<?php
$sql = "SELECT * FROM tbl WHERE id=".$_GET['s']." ORDER BY pos ASC";
$result = mysql_query($sql);
while($rs = mysql_fetch_row($result)){
...do some output here...
}
?>
});
});
For some reason, $_GET['s'] is empty. Any ideas why? Thanks in advance for any help!