Answer the question
In order to leave comments, you need to log in
After the redirect, no data is displayed?
Here is the code:
<?php
require_once "includes/config.php";
if (isset($_POST['search'])) {
$word = mysqli_real_escape_string($connection, $_POST['search']);
$result = mysqli_query($connection, "SELECT * FROM videos WHERE title LIKE '%$word%'");
header('Location: http://www.site.ru/search.php');
$end_result = '';
$ter = array();
while($row = mysqli_fetch_array($result)){
$ter[] = $row;
}
}
?>
Answer the question
In order to leave comments, you need to log in
It seems that you are trying to milk a cow, but are not very aware of how the process is going on, and reading is not for you. Therefore, first you try to enter the barn through the roof, then through the wall, then still go through the window. Further, the cow is standing in a stall, so at first you try to milk her by the horns, sitting on her back, then by the tail, hanging from the floor beams, now you have found where the milk is dripping and dig a hole from the neighboring stall with the horse to finally get to the bottom udder.
IT IS NOT EASIER TO READ WHAT AND HOW IT IS DONE? Or ask a milkmaid?
This is the 4th duplicate question in a day. If you are unable to understand the answers to the previous questions, then do not spam. Get a programmer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question