Level 4
thanks for the reply!!
This is what i am trying to do as below!!
I have tried above solution!!
I am trying check the if condition either true or false with variable $data but the variable $data is in array format and $user->post is in string format
How can i make both variable with same type match with if condition
$user->post = Input::get("description");
$data = DB::table('posts')->select('title')->get()->toArray();
foreach($data as $t) {
if($user->post == $t){
//some code...
}
}