473,466 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Display table according to the search term

250 Contributor
In my application i have a table for retrieving database values. and also i have a search function. In page load in first time i want to display normal table and when searching i want to display only specific values according to the search term. Could you please tell me how can i do that?
Mar 18 '08 #1
3 1581
satas
82 New Member
In my application i have a table for retrieving database values. and also i have a search function. In page load in first time i want to display normal table and when searching i want to display only specific values according to the search term. Could you please tell me how can i do that?
Try google for
Expand|Select|Wrap|Line Numbers
  1. php mysql
to find out basics. Or try to explain your problem more detailed.
Mar 18 '08 #2
ghjk
250 Contributor
Try google for
Expand|Select|Wrap|Line Numbers
  1. php mysql
to find out basics. Or try to explain your problem more detailed.

I'm developing web application using php. one of my page hase 4 text boxes, search function and table.(teble displays database values). In first time user log in to this page he should display all values in the table. But if he search some value then should only display details accoring to that serch term.

EX. first time table has 5 record(default database values). Then he search by country(Search By: xxxx). So it should display 2 records those are in that country.

I want to load the value to same table in both situation.
Mar 18 '08 #3
satas
82 New Member
Okay, but it is a quite typical application described in the most of tutorials.
All you need to do is to execute 2 queries and display the results:
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM `table_name`;
and
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM `table_name` WHERE `country`='country_name';
Mar 18 '08 #4

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

Similar topics

10
by: minchu | last post by:
Hello, I have used CSS in HTML page (font-verdana size-8pt), looks fine in windows but in linux the fonts are corrupt and its too small. Kindly help me and tell what is the solution to correct...
5
by: Miguel Dias Moura | last post by:
Hello, I have a search form in an ASP.NET/VB page. The form has the input text box and the button "search". The keywords are passed in the URL to results.aspx. Here is an example:...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
18
by: fishwick | last post by:
I haven't really done any css in quite a while, and am banging my head against the wall trying get the rudimentary layout together of a church website home page to display correctly - I don't want...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.