Link to home
Start Free TrialLog in
Avatar of heze54
heze54Flag for Spain

asked on

Ubuntu 14 Teampass install mysqi_fecth_all error

Hi,

I´m installing TeamPass last version under ubuntu 14 LTS and, when checking PHP functions, there is an error about mysqi_fecth_all.. not avaliable

Why?

How to repare this error?

Regards
Avatar of Martin Fernandez
Martin Fernandez
Flag of Uruguay image

As your PHP installation was not compiled with mysqlnd you can use these two options:
Use a loop:
$data = [];
while ($row = $result->fetch_assoc()) {
    $data[] = $row;
}

Open in new window


Good luck!
Avatar of heze54

ASKER

HI,

If I choose the 2nd choice, how to do this?


Regards
Instead using mysql_fetch_all() to get the data, use the second one:

Instead:

$data = mysqi_fecth_all($result, MYSQL_ASSOC);

Open in new window


Do:

$data = [];
while ($row = $result->fetch_assoc()) {
    $data[] = $row;
}

Open in new window


And you will get the same result.
Avatar of heze54

ASKER

HI,

Which file? php.ini?
Just to be clear, you're not having trouble with mysqi_fecth_all() but are really having trouble with mysqi_fetch_all() ?  Because according to PHP it does not exist:
http://php.net/manual-lookup.php?pattern=mysqli_fetch_all&scope=quickref

MySQLi_fetch() used to exist, but has been removed.

Maybe the thing you want is this:
http://php.net/manual/en/mysqli-result.fetch-all.php
Avatar of heze54

ASKER

HI  Ray,

Resuming... I´m trying to install the latest version of TeamPass under Ubuntu 14.

What should I change?

The more I read forums, The less I understand
Avatar of heze54

ASKER

Hi Ray,

Right!!

Regards
Great.  What step of the installation fails?
Avatar of heze54

ASKER

HI,

1st one

PHP function "mysqli_fetch_all" is available   Function mysqli_fetch_all is not available!

I also tried to update from 5.3 php to 5.6, but no changes made
Avatar of heze54

ASKER

HI,

Any idea?

Regards
ASKER CERTIFIED SOLUTION
Avatar of Sergey Truhan
Sergey Truhan
Flag of Belarus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of heze54

ASKER

A++