Implement PHP code on Jquery :
I m gonna explaining you how it works, but first i want to tell you this is a very bad practice between php and product management, production of application, Website Creation, Web Application. This is too bad practice.
In this Implementation you have a to put jquery inside the .php extension page like main default page index.php
And put your code on Between script tag <script></script>
<script type="text/javascript">
var var-name = " Put PHP Code Here";
$('#div-name').html(var-name);
Example :
var phpCode = "<?php $query = "SELECT * FROM table-name" ?>";
$('#aside').html(phpCode);
</script>
0 comments:
Post a Comment