M
M
MrMim2020-04-24 23:29:43
PHP
MrMim, 2020-04-24 23:29:43

Need to get data from php db?

The error gets out... how it is better to make request?

$quer = mysqli_query($link, "SELECT * FROM `product` WHERE `where_is` = 'product' AND `ctg` = " . (int) $_GET['sub'] . AND `sub_ctg` = (int) $_GET['id_sub']);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2020-04-24
@galaxy

Your quotes are missing in the second part of the query. I think if you learned how to use syntax highlighting here (and at the same time in your editor), you would notice it.
And I also really, really recommend pumping the most powerful skill of reading error log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question