Skip to content

Commit

Permalink
search feature added.
Browse files Browse the repository at this point in the history
  • Loading branch information
enderimen committed May 9, 2018
1 parent af27a2d commit 75ff9e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

if ($search_value != "") {

$search_user_sql = mysqli_query($connection, "SELECT user_name , full_name , profile_photo FROM kullanicilar WHERE full_name OR user_name LIKE '%$search_value%'");
$search_user_sql = mysqli_query($connection, "SELECT id, user_name , full_name , profile_photo FROM kullanicilar WHERE full_name OR user_name LIKE '%$search_value%'");

$search_story_sql = mysqli_query($connection, "SELECT story_title, story_desc ,story_photo FROM stories WHERE story_title LIKE '%$search_value%'");
}else {
Expand Down Expand Up @@ -44,7 +44,7 @@
<img src="<?=$search_user_data['profile_photo']?>" alt="" height="80" width="80">
<div class="user-details">
<span>
<a href=""><?=$search_user_data['full_name']?></a>
<a href="profile.php?uid=<?=$search_user_data['id']?>"><?=$search_user_data['full_name']?></a>
</span>
<span>
<a href=""><?=$search_user_data['user_name']?></a>
Expand Down

0 comments on commit 75ff9e9

Please sign in to comment.