<meta charset="utf-8">

<?php 
include "dataBase.php";
$data = searchGeneral();
var_dump($data);
header("refresh:2;url=index.php");
die('İşleminiz Gerçekleştiriliyor lütfen İşleminiz bekleyiniz.');
Beispiel #2
0
    echo "&nbsp&nbsp&nbsp&nbspNo results found.";
}
echo "</br>";
print "<hr />";
echo "<h3>Pictures</h3>";
$oldNumResults = $numResults;
$numResults = searchPictures($search, $numResults, $db_server);
if ($oldNumResults == $numResults) {
    echo "&nbsp&nbsp&nbsp&nbspNo results found.";
}
echo "</br>";
print "<hr />";
echo "<h3>General matches in page</h3>";
$oldNumResults = $numResults;
$users = array();
$users = searchGeneral($search, $users, $db_server);
$numResults += count($users);
// print users
foreach ($users as $user) {
    $temp = "profile.php?user="******"&nbsp&nbsp&nbsp&nbsp- <a href={$temp}>{$user}</a></br>";
}
if ($oldNumResults == $numResults) {
    echo "&nbsp&nbsp&nbsp&nbspNo results found.";
}
echo "</br>";
echo "<h3>{$numResults} match(es) returned.<h3>";
function searchUsers($search, $numResults, $db_server)
{
    $query = "SELECT * FROM users";
    $result = $db_server->query($query);