A PHP Error was encountered
Severity: Notice
Message: Undefined index: slug
Filename: views/search.php
Line Number: 6
Backtrace:
File: C:\xampp\htdocs\movieworld\application\views\search.php
Line: 6
Function: _error_handler
File: C:\xampp\htdocs\movieworld\application\controllers\Search.php
Line: 23
Function: view
File: C:\xampp\htdocs\movieworld\index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Undefined index: name
Filename: views/search.php
Line Number: 6
Backtrace:
File: C:\xampp\htdocs\movieworld\application\views\search.php
Line: 6
Function: _error_handler
File: C:\xampp\htdocs\movieworld\application\controllers\Search.php
Line: 23
Function: view
File: C:\xampp\htdocs\movieworld\index.php
Line: 315
Function: require_once
A PHP Error was encountered
Severity: Notice
Message: Undefined index: descriptions
Filename: views/search.php
Line Number: 6
Backtrace:
File: C:\xampp\htdocs\movieworld\application\views\search.php
Line: 6
Function: _error_handler
File: C:\xampp\htdocs\movieworld\application\controllers\Search.php
Line: 23
Function: view
File: C:\xampp\htdocs\movieworld\index.php
Line: 315
Function: require_once
<h2>Search (Result <?php echo count($search_result); ?>)</h2>
<?php foreach($search_result as $key => $value): ?>
<div class="well">
<a href="/movies/view/<?php echo $value['slug']; ?>"><?php echo $value['name']; ?></a> <br> <?php echo $value['descriptions']; ?>
</div>
<?php endforeach ?>
я знаю мой вопрос звучить глупо но мне струдом приходиться учить и понимать
спасибо !!
убрал false теперь работает все