Jump to content


Photo

PHP and MYSQL


  • Please log in to reply
3 replies to this topic

#1 pbaker

pbaker
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 November 2005 - 07:04 PM

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

#2 eyesoda

eyesoda
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 17 November 2005 - 07:45 PM

[!--quoteo(post=319566:date=Nov 17 2005, 02:04 PM:name=pbaker)--][div class=\'quotetop\']QUOTE(pbaker @ Nov 17 2005, 02:04 PM) View Post[/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
[/quote]


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.
...if you show where you're at then someone will help you get where you're trying to go.

#3 pbaker

pbaker
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 17 November 2005 - 09:13 PM

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) View Post[/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.
[/quote]


#4 eyesoda

eyesoda
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 18 November 2005 - 08:51 PM

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...

...if you show where you're at then someone will help you get where you're trying to go.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users