473,545 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

47 New Member
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 1693
JKing
1,206 Recognized Expert Top Contributor
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
Bharat383
93 New Member
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_bo x" 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($qr y) or die(mysql_error ());

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

Bharat Parmar(Bharat38 3)
Apr 21 '12 #3

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

Similar topics

3
1318
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
20276
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
1294
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 "Google Hacks" are very interesting; yet are "a bit too advanced" for my needs. There are likely existing
5
2490
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 was found was displayed with about 2 lines before and 2 lines behind the search word itself. Let us say you look for "peanut butter" an the word is...
11
2587
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 than google; for example; I want to spider Home Depot websites and sell it to Lowes. Does anyone want to help?
0
910
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
2128
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 - $3000 setup fee and then $150 monthly to get your website search optimized ? I used the domaintools.com and it seems like my website had higher SEO...
6
1593
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
7487
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7680
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7778
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5349
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4966
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3476
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1908
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1033
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
731
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.