When i call /comment.php
it returns data that i've requested. where post_id is fixed.
/comment.php
"ajax":
{
"url": "http://localhost/fb-callback.php?post_id=12345_67890",
"type" : "GET",
"dataSrc": function (response) {
// console.log(response);
if(response.whaterver == 0){
//DO YOUR THING HERE
}
//return back the response
return response;
},
Instead of fixed id (12345_67890), i wanna declare a php variable there, something like this ::-
<?php
$uid = $_GET['uid'];
?>
"ajax":
{
"url": "http://localhost/fb-callback.php?post_id="+"&uid",
"type" : "GET",
................
so that when i'll call url /comment.php?uid=12345_67890**
it'll return results. But it seems it doesn't work that way.
HOW CAN I DO THAT Or is there other way to make this call ?
Here is the Full code ::: https://pastebin.com/iy3htv63