473,395 Members | 1,468 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How to make a search engine form to search posts on my website?

Hi,

I have a job board and I am unsure of how to make a search form like other job boards so people can chose their needs then click search to search the posts on a webpage to then show the posts that meet the search criteria.

Thanks,

James
Jan 24 '11 #1
2 1688
JKing
1,206 Expert 1GB
Do you have a database?

A search is performed on a database using a combination of a server side language and some sql to pull data related to the user's input.
Jan 24 '11 #2
for searching facility to user you must have to use any server side script as well as database to store details about searching data.

if you are using php ::

<form name="form1" method="post">
<input type="text" name="search_box" value=""> <input type="submit" name="submit" value="Search Job">
</form>

<?php
if(isset($_POST['submit']))
{
$search_text = $_POST['search_box'];

// make query to search
$qry = "select * from job_details where title like '%$search_text%'";
$query = mysql_query($qry) or die(mysql_error());

//fetching or getting details and display it
while($row = mysql_fetch_array($query))
{
echo "<div>";
echo $row['title'];
echo "</div>";
}
}
?>

Bharat Parmar(Bharat383)
Apr 21 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: vishnu mahendra | last post by:
hello to all, i am new to javascript and i have planned to do a search engine in windows. please kindly tell me where should i start and please give me some tips. thank you in advance, vishnu
9
by: Christopher Koh | last post by:
I will make a form which will search the database (just like google interface) that will look/match for the exact name in the records of a given fieldname. Any suggestions on how to make the code?
1
by: Noticedtrends | last post by:
Hello, I'm seeking search-engine utilities that allow searches of content only contained in titles (as opposed to regular searches that search through all content)? The tools provided in...
5
by: Martien van Wanrooij | last post by:
I have been using phpdig in some websites but now I stored a lot of larger texts into a mysql database. In the phpdig search engine, when you entered a search word, the page where the search word...
11
by: susiedba | last post by:
does anyone know of a framework; or tools; or something-- that describes an open source VB.net search engine / spider? anyone want to trade notes? I want to build something a lot more focused...
0
by: amolchede | last post by:
i am going to prepare a job search side and i have face a problem regarding search engine which search the jobs from database (sql server) kindly help me for this
8
by: Roman | last post by:
I received a marketing call from a guy first showing me my website and then some other website and ranking of that other website. My questions is it worth paying to SEO corporation a $1200 -...
6
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, what determines how high a website's ranking will appear after being searched? what can i do to my website to give it a good chance of being ranked pretty high? thanks, rodchar
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.