Use echo inside request

I need to include the value of the object returned by the associated interface API on login. When I assign a return identifier to a php variable, I can simply echoreturn a variable that outputs the correct identifier. However, when I try to include a variable that stores the identifier in the request, the request reads the linkedIn JS code literally, and not just retrieves the value.

Well, that probably doesn't make any sense, here is an example:

$someVar = "<?js= id ?>";
echo $someVar; // Outputs: MD93l2jdJ

$sql = "select * from myTable where my_col = $someVar";

In the above request, the server reads $someVaras <?js= id ?>, notMD93l2jdJ

So, is it possible to somehow use echoin the request, as in ...

$sql = "select * from myTable where my_col = echo $someVar";

EDIT

<?js is LinkedIn Jargin- see here: https://developer.linkedin.com/documents/getting-started-javascript-api

!

+3
4

, Javascript (.. ). MD93l2jdJ .

+3

, , . , Linkedin javascript, , . PHP , , . , PHP, .

+3

:

$sql = "select * from myTable where my_col =" . $someVar;
0

$sql = "select * from myTable where my_col = '$someVar'";

var , ,

$someVar = mysql_real_escape_string($someVar);
$sql = "select * from myTable where my_col = '$someVar'";
0

All Articles