S
S
santavits2018-05-27 20:56:36
MySQL
santavits, 2018-05-27 20:56:36

How to substitute js response data in sql query?

I have a sql query

$qwe = $pdo->prepare("SELECT * FROM podkategories WHERE idcat='???'");

And there is a value from the value tag of the
value I selected How to substitute data from js into sql ??
$("#catid").val();

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
McBernar, 2018-05-27
@McBernar

Send via ajax.
Transfer simply getom.
Directly from JS to php - no way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question