lundi 18 juillet 2016

Search Food Items in laravel

I have a search box in my views and I want to search foods from the database. My view for seach box is:

<div class="field" id="searchform">

<input type="text" id="searchterm" placeholder="e.g mutton 

karahi,pizza..."  />

<button type="button" id="search" 

onclick="window.location='http://localhost:8000/search'">Find Food!</button>

</div>

My food table has fields like:

  1. Food_id
  2. FoodName
  3. FoodDescription
  4. FoodImage
  5. Price

Now I want to search my foods By name.How I can do that?plz help me.I am new to laravel and I am using laravel 5.2.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire