the warning message above is shown when the site is searched. It is a simple search feature which displays all the records, matching the search word with a field in the table. The code is as below.
if(isset($_POST['submit'])){ $clean_search_word = mysqli_real_escape_string($con,$_POST['search_word']); $sql = "SELECT * FROM webdir_user where user_category like '%$clean_search_word%'"; $record = mysqli_query($con,$sql); if(!$record){ die('Error in SQL:'.mysql_error()); } else{ while($result = mysqli_fetch_array($record,$con)){ } } } I have found answers to kind of same issues as mine, but in most of the cases the warning message was caused by something else so I couldn't find any help with figuring out what caused the problem in my case. Any help or advise as to how to resolve. Thank you.