Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am beginner in php. I spend a lot of time to implement to write search logic but no use I am failing please anyone suggest me how to write search logic in 'header.php' file this 'header.php' file will appears in entire website.
Posted
Comments
Peter Leow 10-Feb-15 6:50am    
What do you want to search? The Internet, intranet, database?
Member 11406049 10-Feb-15 6:53am    
I have a books table in database. when ever user search for particular book like 'xyz' under 'fiction' category I have to print related books. and that search box is in 'header.php' for my site. I am including it in to all .php files
ZurdoDev 10-Feb-15 7:49am    
So, where are you stuck?

1 solution

Learn from this tutorials and adapt to your need: live search with PHP[^]
You can save the html file in this tutorial as php and include it in other php pages using PHP include and require[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900