Jump to content

Recommended Posts

im having a problem in dreamweaver where im trying to create a search box which when u click submit it querys a database that say has a table in with say has 4 colums a ID colum then firstname,surname etc and then displays the details for that record below. by the ID colum but i cant work out how to hope someone can help

Link to comment
https://forums.phpfreaks.com/topic/2886-php-and-mysql/
Share on other sites

[!--quoteo(post=319566:date=Nov 17 2005, 02:04 PM:name=pbaker)--][div class=\'quotetop\']QUOTE(pbaker @ Nov 17 2005, 02:04 PM) 319566[/snapback][/div][div class=\'quotemain\'][!--quotec--]

im having a problem in dreamweaver where im trying to create a search box which when u click submit it querys a database that say has a table in with say has 4 colums a ID colum then firstname,surname etc and then displays the details for that record below. by the ID colum but i cant work out how to hope someone can help

 

 

What code do you have so far?

 

I had to make a search box for my site where you find clubs. I made it so you can search by street name, address number, borough (i'm in NY), club name, etc while using 1 search box and a drop down list.

 

I did this while basically knowing no php except that it looks like C syntax and that I know HTML and how an 'case' statement works. Needless to say I was proud of it mostly because I didn't get a lick of my code from anywhere. Thats not to say that you are not supposed to ask for help, but if you show us where youre at then someone will help you get where youre trying to go.

Link to comment
https://forums.phpfreaks.com/topic/2886-php-and-mysql/#findComment-9708
Share on other sites

well basically its going to be a search box like urs and querys the database by a ref number e.g 23 and when you click it i want it to look at the database find ID 23 and then display all the persons details who are under the ID of 23.

 

e.g ID:23

Mrs Jones

34rd Street

Local Area

 

then i want to make a link so i can then submit there journey details for our local bus service we run.

 

 

[!--quoteo(post=319574:date=Nov 17 2005, 07:45 PM:name=eyesoda)--][div class=\'quotetop\']QUOTE(eyesoda @ Nov 17 2005, 07:45 PM) 319574[/snapback][/div][div class=\'quotemain\'][!--quotec--]

What code do you have so far?

 

I had to make a search box for my site where you find clubs. I made it so you can search by street name, address number, borough (i'm in NY), club name, etc while using 1 search box and a drop down list.

 

I did this while basically knowing no php except that it looks like C syntax and that I know HTML and how an 'case' statement works. Needless to say I was proud of it mostly because I didn't get a lick of my code from anywhere. Thats not to say that you are not supposed to ask for help, but if you show us where youre at then someone will help you get where youre trying to go.

 

Link to comment
https://forums.phpfreaks.com/topic/2886-php-and-mysql/#findComment-9713
Share on other sites

yeah but how will anyone know to search by id number? to me if I were a random user of your db I would not know the difference between id 23 or id 45.

 

Shouldn't you be allowing the db to be searched with some other human readable criteria. Maybe it would help more if I understood the purpose of your db. cause no one will search via id number. Unless you are making some sort of HR application for HR professionals or something.

 

Post ur code too...

 

Link to comment
https://forums.phpfreaks.com/topic/2886-php-and-mysql/#findComment-9723
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.