Good day!
php -v PHP 7.0.24 (cli) (built: Sep 30 2017 10:10:28) (NTS)
Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
When trying to run a script
$user='test'; $password='test'; $database='test'; $host='localhost'; $link = mysqli($host, $user, $password, $database) or die (mysqli_error($link)); $q="select * from workers limit 1"; $result=mysqli_query($link,$q); echo $result; ?> an error is issued
PHP Fatal error: Uncaught Error: Call to undefined function mysqli () in /usr/share/nginx/html/test/index.php:6
Stack trace:#0 {main}
thrown in /usr/share/nginx/html/test/index.php on line 6
In Google one answer connect the library php_mysqli.dll
But I have a cloud on my owncloud on owncloud and it works fine with the base. What could be the reason?
new mysqli(...).newoperator - Andmysqlifunction - which does not exist, since you are using an object, then you need to work with the$linkobject and its methods and properties, and for this you need to use thenewoperator before the name of the classmysqli. - And