0

Hi I need to pass a JS variable to PHP that can be used in a MYSQL query

i tried with

$varPQR = "<script> document.writeln(IdLocalStorage); </script>"; echo $varPQR;

$queryGetPqr = "SELECT * FROM {$wpdb->prefix}sfcwp_pqrs WHERE codigo_queja = {$varPQR}";

didn't work

0

1 Answer 1

0

Use form and hidden input to pass data from client to server

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.