Anyone have a working search form script?

This is a discussion on "Anyone have a working search form script?" within the PHP Forum section. This forum, and the thread "Anyone have a working search form script? are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 28th, 2007, 13:38
Junior Member
Join Date: Sep 2007
Location: Scotland
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Anyone have a working search form script?

Iam looking for a working PHP search form script to use as reference for my design. I am looking to have a search form take in variables, when submitted it will connect to MySQL database and display all results in a paged fashion(prefferably with an image as well) and hyperlinking to a detailed description of the chosen recoed. I'm pulling my hair out here trying to construct this and thought if someone has gotten something similar up and running before if you would be willing to share you knowledge please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 28th, 2007, 13:41
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Why don't you use googles' custom search engine for your site?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 28th, 2007, 13:43
Junior Member
Join Date: Sep 2007
Location: Scotland
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

It's not a search engine I am after, it's a search on a database based on information taken from a form.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 28th, 2007, 13:46
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Oh ... sorry ... my bad.

So ... there's more than 1 input? Hmmm ... interesting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 28th, 2007, 13:55
Junior Member
Join Date: Sep 2007
Location: Scotland
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Yeah, just the same as a search engine would work except it would have a SELECT * from table WHERE (and list all conditions). I can perform the search and display the results it really the displaying of a results page thats giving me bother
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Sep 28th, 2007, 13:56
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

How do you mean? Can you show up some code and a link so we can try it out?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Sep 28th, 2007, 13:59
Junior Member
Join Date: Sep 2007
Location: Scotland
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Can't at the moment unfortunatley, at work and the code is on home machine. To give you an idea of my search form and displaying of results linked to detail page, it's going to be a sports products version of www.colvinhouston.com site.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Sep 28th, 2007, 20:43
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Sounds to me like you need some sort of pagination so you basically create a list of so many records and then create next and previous links depending on the number of records.

I have a script I use to do this if you need it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Sep 28th, 2007, 23:11
Junior Member
Join Date: Sep 2007
Location: Scotland
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Ihave a pagination functionworking already with just codes but cant get the result page to display as required with an Image at one side and details next to it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Sep 28th, 2007, 23:27
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

What you could do is either a div class with an image floated to the left and a hyperlink with a description of the result so when you list the results, they all look the same or you could use a table.

I haven't done it but i don't hink it will be too hard

If you need any help, i'll have a look
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Sep 28th, 2007, 23:34
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Quote:
Originally Posted by daveg33 View Post
Ihave a pagination functionworking already with just codes but cant get the result page to display as required with an Image at one side and details next to it.
Can you sho me what you have got....it's the bit after the mysql_fetch_array that I'm after
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Sep 28th, 2007, 23:38
Junior Member
Join Date: Sep 2007
Location: Scotland
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

A strange question AdRock, would you be willing to take on freelance work for the weekend? I really need an exact type of search,result and dispaly function similar the site specified for Mon but on full weekend shifts so won't have a chance. Let me know please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Sep 28th, 2007, 23:54
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Anyone have a working search form script?

Quote:
Originally Posted by daveg33 View Post
A strange question AdRock, would you be willing to take on freelance work for the weekend? I really need an exact type of search,result and dispaly function similar the site specified for Mon but on full weekend shifts so won't have a chance. Let me know please.
I'll give it a go.

PM see more info and I'll get on it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Google negative search not working? spinal007 Webforumz Cafe 2 Apr 21st, 2008 09:54
search this forum does not appear to be working Johnathan Webforumz Suggestions and Feedback 20 Jan 14th, 2008 07:19
php script not working acrikey PHP Forum 13 Apr 14th, 2007 14:44
Rotating banners - I don't know why my script isn't working! Tim356 JavaScript Forum 4 Aug 20th, 2005 05:58
my free linkscaffe script is not working? robin Databases 1 Sep 1st, 2003 11:34


All times are GMT. The time now is 14:13.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42