C
C
chopik252021-01-01 17:27:22
PHP
chopik25, 2021-01-01 17:27:22

What is wrong with the php request?

How to build this query correctly.
I'm still learning myself .... if anything ...

$masters = \R::getAll("SELECT * FROM `bel_master`INNER JOIN `beluser` WHERE category_id IN $ids AND bel_master.user_id = beluser.id LIMIT $start, $perpage");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Emil, 2022-01-03
@MrCheatEugene

First you need to escape the strings with the mysqli_escape_string function.
I don’t know how to do this in redbean (I don’t remember the exact name, but I remember that the framework starts with R).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question