Slim Application Error

Slim Application Error

The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given
File: /home/institut/public_html/php/bundle/DB.php
Line: 20

Trace

#0 [internal function]: Slim\Slim::handleErrors(2, 'mysqli_fetch_ar...', '/home/institut/...', 20, Array)
#1 /home/institut/public_html/php/bundle/DB.php(20): mysqli_fetch_array(false, 1)
#2 /home/institut/public_html/php/bundle/Data.php(42): Database->myquery('SELECT * FROM `...')
#3 /home/institut/public_html/php/bundle/content/banner.php(7): Data->localitate(' deleni.html', 3, NULL)
#4 /home/institut/public_html/php/bundle/content/banner.php(174): localitateNume(Object(Data), 3, NULL, ' deleni.html')
#5 /home/institut/public_html/php/bundle/Content.php(65): require('/home/institut/...')
#6 /home/institut/public_html/php/bundle/Content.php(58): Content->requireToVar('banner.php', Array)
#7 /home/institut/public_html/php/bundle/Content.php(43): Content->fromDoc('banner', Array)
#8 /home/institut/public_html/php/bundle/Process.php(41): Content->contentMatch(Array)
#9 /home/institut/public_html/php/bundle/LocalApp.php(51): Process->content()
#10 /home/institut/public_html/index.php(30): LocalApp->renderPage(Array)
#11 [internal function]: {closure}('judetul-constan...', 'comuna-deleni.h...')
#12 /home/institut/public_html/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#13 /home/institut/public_html/Slim/Slim.php(1357): Slim\Route->dispatch()
#14 /home/institut/public_html/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#15 /home/institut/public_html/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#16 /home/institut/public_html/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#17 /home/institut/public_html/Slim/Slim.php(1302): Slim\Middleware\PrettyExceptions->call()
#18 /home/institut/public_html/index.php(35): Slim\Slim->run()
#19 {main}