J
J
JayDeeZz2018-03-15 19:13:17
CodeIgniter
JayDeeZz, 2018-03-15 19:13:17

I can't get sql query to work in Codeigniter. How to write sql query correctly?

I can’t figure out how to correctly set a sql query, if I just throw a query in phpmyadmin in sql, then everything is good, and if it doesn’t work through the function
, they have their own builder and I can’t figure it out so it only outputs the number 1))
5aaa9b616e87d644675553.png
5aaa9b765b654839117394.png
5aaa9b8d70851936215850.png
5aaab3fa4f35e176408646.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton fon Faust, 2018-03-16
@bubandos

Well, well... you're trying to fit two queries into one, and db->query only executes one query at a time.
Either create a stored procedure, or use transactions, or increment your rank when parsing the fetch result.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question