<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.');
echo "    No results found."; } echo "</br>"; print "<hr />"; echo "<h3>Pictures</h3>"; $oldNumResults = $numResults; $numResults = searchPictures($search, $numResults, $db_server); if ($oldNumResults == $numResults) { echo "    No 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="******"    - <a href={$temp}>{$user}</a></br>"; } if ($oldNumResults == $numResults) { echo "    No 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);