I'm new to php coding I reviewed all the questions I could find about this, but it doesn't seam to be the be the same question.
I think it's a problem with my $query but I can't find it or am just not experienced enough. My $query is running not like in other questions, this is the error:
"Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in bla/bla/bla/index.php on line 10"
here's my code:
<?php
$con = mysqli_connect('localhost','root','','littlehelper');
if (isset($_POST['keywords'])) {
$k = $_POST['keywords'] ;
if(!empty($k)) {
$query = "SELECT * FROM 'search' WHERE * LIKE '%".mysqli_real_escape_string($con, $k)."%'" ;
$query_run = mysqli_query($con, $query);
// Check if it is a boolean, then check if we have rows (not nice, but workable)
if($query_run !== false && mysqli_num_rows($query_run)>=1) {
echo 'found' ;
} else {
echo 'not found';
}
}
}
?>
thanks for every help i can get