I'm trying to call a php function to do some SQL stuff.
I've read on stack that it's possible, but only if I use ajax. So I've tried.
Here is the ajax :
$.ajax({ url: './put_in_table.php',
type: 'get',
success: function(output) {
console.log(output);
}
});
Unfortunately, It does nothing, and the output returned by the request is containing the PHP source code.
Php code is just a very simple test :
<?php
echo "lol";
?>
Does anybody have an idea why the php is not executed? (It only contains an echo). Thanks in advance.