E
E
Extramezz2015-07-23 12:38:52
PHP
Extramezz, 2015-07-23 12:38:52

Why is there an error when using mysqli?

Own, runtime error

//$r - ответ от БД
$r = $r->fetch_all();

Call to undefined method mysqli_result::fetch_all()

How is there no such method, if it IS ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2015-07-23
@Extramezz

It is useful to read the documentation in its entirety, and not to the point of interest:

Only for MySQL Native Driver

Z
zooks, 2015-07-23
@zooks

Check the $r variable - I'm sure it hasn't been assigned an object with that method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question