Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How Can I Create A Page With A Search Box Or Dropdown Menus


I have a database that contains houses, price, discription and photo etc. How can I create a page with a search box or dropdown menus that will look at the database and return what I have asked for in the search box or dropdown menus? I know this is a big ask, so a special thanks to anyone who can lead me in the right direction. The table consist of columns which are: house_id, address, ref, high_lights, more_info, pics_thumbURL, and pics_mainURL.




View Complete Forum Thread with Replies

Related Forum Messages:
PHP Dynamic Drop Down Menus, Page Displays Diff Data Depending On Dropdown Selected.
I currently have two drop down menus the first one with countries and then the second one changes depending on which country is selected to display counties.

This works fine, now what I want to do is have it so when it county is selected it shows all the squash clubs that are in that county below the drop downs. Code:

View Replies !
Dropdown Menus
i would like a Dropdown menu ordered by the parent cat and then showing its sub cats like below:

<SELECT>
<option value=0>Cat Name</option>
<option value=?>-Sub Cat</option>
<option value=?>-Sub Cat</option>
<option value=?>-Sub Cat</option>
<option value=0>Cat Name</option>
<option value=?>-Sub Cat</option>
<option value=?>-Sub Cat</option>
<option value=?>-Sub Cat</option>
</SELECT>

View Replies !
Dropdown Menus Problem
I have two drop down menus in my php script. The items displayed in the second is dependent on which item is choosen from the first i.e. the choosen item from the first filters the items in the second Code:

View Replies !
Add Data To A Database Using Dropdown Menus?
lets say i had a database with a table called admin hacks and another table called user hacks,and both tables had feilds called name and id

now what i want to be able to do is create a submit form with a drop down menu saying the table names mentiond above, also the form will have a field called name.

now lets say a user slected admin hacks from the drop down menu and enterd jack in the name, how would i get the data in that submitted form to be inserted into the correct database table, so jack should now be in the table called admin hacks

also lets say someone selected user hacks and entered jon how would i do the same for that?

View Replies !
Create A Page With A Form To Search Entries Into This Table
I have a table called "lista" into my mysql database.This table has 5 text columns : "TRANSLATEDTITLE" "ORIGINALTITLE" "ACTORS" "DIRECTOR" "YEAR" , and 1 image column called "COVER".

I want to create a page with a form to search entries into this table, and anotger php page with the search results shown inside, everyone with a link that opens a pop window (ex. 400X320).

View Replies !
Create A Search Function For Mysql Database On The Web Page
I try to create a search function for mysql database on the web page but it didn't works. Code:

View Replies !
Dropdown Box With Search
I am seeking to create a page that has a drop down and depending on the drop down I choose allows me to search tables within my sql based on that chosen drop down. Similar to the one found at www.imdb.com but the drop down would be a list of the tables within the dba that the user could search.

The purpose is to create a search box where an runn can enter in his name or bib number and select the year he wishes to view his resutls. The search would then look within the table of the year selected and display the runners info.

I am not sure on how to accomplish this. If anyone knows of some resources that i can read or if anyone knows others who have done this and are willing to share knowlege.

View Replies !
Create State-cty Dropdown Lists
I've gotten everything up and running except for this -- I'd like to
be able to have people have a dropdown list of cities in the US to use
(or wherever) and not have to input them manually into a text field.
When you do then there are issues of misspellings, etc.

Now I have a list of cities from each state that is a sample that
works in an html page. Problem is that it takes up 2 MB! Way too much
to load on a single page and I was wondering how this is accomplished
best -- do people use javascripts that can pull information from
another flat flie? Do people use PHP to connect to a mysql database
that might have a list of these fields and then reloads the page?

I'm really not sure of best options and would be grateful for anyone
to give me pointers or whether there are other examples and even
places to buy these databases (not likely but good to have if I decide
to do so.)

View Replies !
Trying To Create Dropdown Menu From List
I am trying to create a dynamic dropdown select menu from a directory containing other directories and files. This is to select a certain page from the list so I can edit it. I only want the files in the menu. Here's what I have so far but it doesn't populate the dropdown. Code:

View Replies !
How To Create A Dynamic Dropdown List
how to create a Dynamic drop down list using Mysql.

View Replies !
Create A Dropdown Of Remaining Months
I am attempting to figure out how I can do the following:

Take a date from a MySQL database like: 2006-06-01 (June 1, 2006)
Then have a dropdown list of remaining months using for example todays date of 2005-08-23
This would product a dropdown like:

1 month
2 months
3 months
4 months
......
10 months

View Replies !
Dropdown In Search Function
I've added a dropdown of states from the database into a search query....but it's still not pulling those users who are listed in that specific state.. Code:



View Replies !
Combining A Radio Button Search With A Dropdown
a. I have a form where a user has to select a company name to update.

b. Currently, i use a code where the first few alphabets of the company name are typed, a radio button used to selected one of the results that pop up and then another 2 scripts update the data.

c. Is it possible to select company name and update on the same form ? Code:

View Replies !
Put The Query On The Search Page Or The Search Results Page?
now ive been trying to get this search query for ages now and i cant seem to spot wot is wrong with it have i just over looked something really simple or am i just doing it all wrong?

the query is to select options from a drop down box which is on a search page and then those selections are meant to be shown on this search results page.

the thing is that i dont have the drop down boxes on the search results page, is it ok to link it from the previous page? ive linked it using the form post method at the moment
and shud i put the query on the search page or the search results page? Code:

View Replies !
Refresh Only One Dropdown Box On A Page
I have a form with many fields and a drop down box called fruit. Lets say it has three choices:

apple
orange
banana.

If the choice is not on the drop down box e.g. grapes the user clicks a link to a new table called add_fruit to add the new fruit and details about the fruit. On submit I want to close the add_fruit table and go back to my original form - refresh only the dropdown box "fruit" - so now the user can pick grapes.

View Replies !
Changing Text On Page Via Dropdown Box.
I have a webpage that draws various text decriptions from a mySql database. The description displayed on the page is controlled via a dropdown box. Currently I am using Javascript with a dropdown box (onChange handler) to change the value of a textbox.

Can anybody think of a way that I don't have to use a textbox(with its' scrollbars and background)? How can I change the value of a php variable by changing the selected index of a dropdown box?

View Replies !
Get Two Dropdown Lists Working On A Page
i am trying to get two dropdown lists working on a page. How do i go about this. For example, I have 1 table which holds countries and cities. When a user selects a country in the first dropdown list, i'd like the second dropdownlist populate with a list of cities etc. from my database.

View Replies !
Creating Dynamic Page Based On Dropdown Selection?
I'm using Dreamweaver, but I believe this is a general PHP/MySQL question. I have a table, with 4 fields: id, year, car_make, car_model. The data looks like this:

1 1992 Honda Civic
2 1994 Ford Probe GT
3 1999 Audi S4
4 2002 Porsche 959

On my web page, I have a drop down list that's propogated automatically with the "car_model" field entries which are pulled from that table. So when I click the down arrow, I see Civic, Probe GT, S4 and 959. Code:

View Replies !
$PHP_SELF - Create A Link Which Refreshes The Current Page, And Based On Certain Items On The Page
On a page, I want to create a link which refreshes the current page, and based on certain items on the page (simple form objects like radio buttons)the page will load differently. My link looks like this: PHP Code:

View Replies !
Dynamic Dropdown And Hardcode Dropdown In Select Form
I have plenty of examples of dynamic dropdown choices but none of hardcoded dropdown choices. The ultimate goal is to have a job with various tasks and to track the status of those tasks for a given job. I've used one of the tutorials here to begin the process. Below is the code I have to add work on a given task. Perhaps I actually need to "Update" a job as opposed to "add".

But the problem of the moment is I can't seem to hardcode one set of my options. This is the code I have: PHP Code:

View Replies !
Create A Page That Will Eliminate Everything Between The < Script > Tags On A Page
I have been trying to create a page that will eliminate everything between the < script > tags on a page and then render all the HTML that is leftover. For some reason, the page won't load for me, but when I copy the source, paste it in a text editor, manually delete all the JavaScript, and then just render what is left over, it works fine.

I have an error and I don't know why I'm getting this error. I don't know what is incorrect about the code.

QuoteParse error: parse error, unexpected ':', expecting ']' in /fantasypoints.php on line 25 Code:

View Replies !
Trying To Create A Site Search
Getting this error:
Error: Can't find FULLTEXT index matching the column list

I changed my columns to be FULLTEXT index. Here is my query:
SELECT * FROM `items` MATCH (`description1`) AGAINST ('this is my test phrase') ORDER BY name ASC

View Replies !
Create A Search Engine
I have a news site and i want to put a search engine on it. The news are in flat files, and i want him to look the flat files and display the results. i make a script thats works almost ok, the problem is:

if in the keyword i put "fiance" and if in the flat file it haves "fiancé" he didnt recognize because the "é". Theres any way to avoid the "é" or "á". My server is UNIX.

View Replies !
How To Create Search Engine
How do I create a search engine, that searches a database for a specific criteria?

View Replies !
Create Search Agent
I'm developing for a cars seller who wants to allow customers to create search agents: they will receive an e-mail from time to time containing models corresponding to their search agent. I've thought of 2 ways round: Every time a new car is added, it works as a search criteria on agents table. (good: less stress on db, bad: 1 mail for each offer instead than regular mails (monthly for example) with many cars available.

Each Agent starts at night (loop of select on car models) (good: that's how it should work! bad: considering 200 agents running each time, on about 600 cars, can I break MYSQL bones!? Waiting for suggestions about best soution for customer, and form resources of MySQL Server.

View Replies !
Create Website Search
point me to a tutorial or something on this board to create a search engine for my website? do i need mysql for that?

View Replies !
Search Variable From The Search Page
I'm just a bit unsure of the correct syntax / what needs to go where. Basically I have a search page, which passes through the inputed text to a results page when the form is submitted. So far so good. But I have an accented keywords bit of code that bolds up any matching text in the results.

However, this is in a lengthy CV type field that only appears in the details page, not the results page. So my question is how do I pass the inputed search variable on from the results page, to the details page so that the matching text can be displayed in bold.

View Replies !
Create A Site Search Feature Using PHP
Can anybody tell me how to create a site search feature using PHP in a web site.

View Replies !
Create A Search Function For The Website
I have a table called tbl_testsf this table consists of 7 cells, one of the cells is called 'product' In the product cell we have information like

ptc 960SL
ptc 960XDS
ptc 960FH
etc,

What I would like to do is create a search function for the website, as the mysql info is already in place, The problem I have is if the customer enters 'ptc 960' this pulls up no information. What I would like to happen is if the customer enters ptc 960 I would like to give the customer a choice of products that are similar to the search criteria.

View Replies !
Create A Search For A Product Database
Im trying to create a search for a product database. so far i can get the keyword search working, but i would also like to be able to search my drop down for the country origin.

I am tryign to fit both into a query, here is what i have come up with:
$result = mysql_query("SELECT * FROM products WHERE name LIKE '%".$_REQUEST['search']."%' AND origin='".$_GET['origin']."'");

The problem is,  when put together that way, it doesn't find anything because it is looking for matches to both rows. I would like for it to find either "search" or "origin" however if both functions find the same product i would only like it to display once. I think i need something like unique id or something.

View Replies !
Create A Search Result On A File Directory
I am working on a project where I need to take a variable from a form, then match that variable against a directory list and return a modified list of files available that are clickable.

I have created the form - (easy part)
and I have found coding that pulls the directory list.

I am having trouble finding information on how to take that directory list a sort the results based only on the keyword that was typed in.

View Replies !
Create A Simlpe Mysql Database Search
Im trying to create a simlpe mysql database search. I have a database called "lever" and then a table called "faults"  Inside the table i have the following titles:

Incident
School
Person
Summary

I want a search field that uses the "incident" filed to display data only in that row. I would like it to be displayed on a html page. Is anyone able to help me with the code. Ive tried using some that have been suggested on the web but I cant seem to configure them correctly.

View Replies !
Create A Search Script For My Job Posting Site.
What I am trying to do is create a search script for my Job Posting Site. The code that was being used didnt work as whe someone searched for example (chef), it returned results. But if they searched for (chef anyword) it didnt return any results. Code:

View Replies !
10 Pages Per Page, On Search Results Page.
how to limit the results to 10 pages per page. And for the result of the result to span over other pages numbers 1.2.3. etc. Does anyone have the code for this? Code:

View Replies !
How Do I Create A Php Search Engine Which Allows The User To Input Few Words ?
i created a search engine but it can only search one word... How do i create a php search engine which allows the user to input multiple words  ?

View Replies !
Create Search Engine Friendly Urls For A Website
I'm using the code below to create search engine friendly urls for a website.

Options +Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)/(.*)/reviews$ reviews2.php?city=$1&bar_id=$2 [L]
RewriteRule ^(.*)/(.*)/$ venue-details2.php?city=$1&bar_id=$2 [L]
RewriteRule ^(.*)/$ city2.php?name=$1 [L]

All is working well apart from one thing. I have 2 blogs within the site one at /news/ and one at /cocktails-and-drinks/. The links to the /news/ is working normally, but the /cocktails-and-drinks/ links seem to be having the last rule applied to it.

View Replies !
I Want To Create Something Like AMAZON: Those Who Liked Page A Also Liked Page B
I want to create something like AMAZON: those who liked page A also liked
page B (I am going to apply the concept to a few different selections, but
to keep it simple I will talk about page popularity here - like AMAZON talks
about purchase patterns: those who bought A also bought B, C and D).

In my mysql table, I record everytime a visitor looks at a particular page
(I keep track of people with sessions and they can only look at a page
once).

Next, what I want to do is to show a small list of similar likes. That is,
people who had an interest in page A also had an interest in page B.

The structure of my table is:
id
timestamp
session_id
page_name

There is a unique index on the combination of session_id and page_name.

To work out similar likes for page X, my idea was to make an array of all
the session ids that looked at page X and then select the top 10 of pages
that these folk looked at.

My question is, should I do this in PHP with a bunch of arrays, adding total
counts while looping through an array or shall I use SQL statements. I
could even make a really long string of WHERE session_id = A or session_id =
B, etc..... Although this seems really inefficient.

Another question I have is whether you think this will be a self-fulfilling
prophecy (e.g. if you say that page Y is also popular then people will check
it out and therefore make it more popular).

View Replies !
Create A New Page
i am currently planning a new content management system, a very simple one for a uni project. I plan to have the page content and links called from a database using mysql and php. The problem is how to create a new page?? This will have to automatically update the links on all pages. Which wont be hard as to get the links i can set up each page to automaically select * from the links table.

View Replies !
Create A Frameset PHP Page.
I've tried many different ways.  Nothing works properly.  Well, one way that it works, but the other site cant seem to find the frame name, because it is in PHP.

It works so well in HTML.  Now, I am trying to create one in PHP, so I do not have to create hundreds of HTML pages for each links. There is only one PHP page and it contains the framesets. What is the proper way to code framesets in PHP?

View Replies !
Dynamically Create New Web Page
i'm making a cms, and I have a good portion done, I have it set up where the admin can log in and create a new post which goes to the database. I am just wondering how I can make this post a new web page? I have been trying to study how they do it in wordpress but with no avail. Anyone have any suggestions?

View Replies !
What Is The Best Way To Create An Article Page?
what is the best way to create an article page? I want to get the article id with $_GET.

View Replies !
How To Create A Non Existant Page...
Here is what I am trying to do....

I am trying to create an RSS Feed from my MySQL Database Category Structure...

The ONLY part I need help with...

I need to be able to CREATE a page with PHP.

I know about the mkdir() and how to use that...
But these RSS pages do not exist yet.. and I need to create them with PHP.

So how would I go about creating a PAGE...

The fputs() command requires that the page I am trying to update already exist... I need something similar that will CREATE it and then I can fputs() the data into the page..

View Replies !
Create A Php Login Page
I just want to know how can I create a php login page and a download page for each customer that login's in.

View Replies !
Create HTML Page
I would like to make a form that once you insert data into the form,it ll automatically create a html format of the data you entered in a html and save it in a folder! How do i go by doing this?

View Replies !
Create An Administration Page
I'm trying to create an administration page. The application is to give doctors, medical assistants, front office support and transcriptionists the ability to upload and download files. Each of these groups of people will require different levels of access. Some are allowed to view and edit. Some are only allowed to view.

The users are all going to be assigned a level of access. I need to write a script, based on the access level of the user, that will direct the user to the area of the website where he/she is allowed. Each access level will have their own main menu which will show the functions that are available for that level.

View Replies !
How To Create The Navigation Page
how to create the navigation page in php. The navigation should be from first page,next page,end page,and previous page.Give an example to code for the navigation page.

View Replies !
Create A Page Dynamically
Is it possible to create a php page dynaimically? For example, when a
user is added I'd like to create a page in a directory in their name so
users could go to www.mysite.com/jack or www.mysite.com/jill and
index.php will have been created there. I know there are many ways
around this but I'd like to know if a php page can be created on the
server.

View Replies !
Create A Pinged Page
What I'd like to do is as follows. Everytime a new entry is entered into a database (whether entered automatically with URL variables or through a webform) a url is "pinged" with the new information.

For example, say I enter the following items into a database

Entry1 Entry2 Entry3

A url is generated similar to the link below

www.test.com/ping.php?id=Entry1&name=Entry2&town=Entry3

and executes it self by visiting another predefined url with the newly enter information. Where do I begin and what's the best method of accomplishing this?

View Replies !
What's The Best Way To Create A Page System?
what's the best way to create a page system? My problem is I have a lot of images (around 30) on 1 page that just goes straight down, what's the best way to make some sort of page system that puts like 5 images per page with 6 pages or something like that? Code:

View Replies !
Dynamically Create And Save Php Page
Here is my code:
$filepointer=fopen("http://www.mysite.org/usersetup/newusers/" . $SESSION_UID . "/configsite.php", "w+");

$data = "<? $name = ' . $datatosave. '
?>";

fputs($filepointer, $data);

fclose($filepointer);

My goal is to dynamically create a .php file with the contents of
<? $name = "variable data"; ?>

My code doesn't work. Something with the php page, I think. I and using similar code to populate .txt files with dynamic data, without variables, and it works file. Apparently, a quick change to .php is harder than I thought. I"ve even tried sending a simple line of data to the php page with no luck. Heck, I even tried doing it as a text file and rename to .php but it didn't like my rename.

View Replies !
Create A Password Protected Page With Php
I would like to password protect page(s) using php, what is the easiest way to do this?

View Replies !
Create A Page To Redirect Links
I want to create a page to redirect links, for example:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved