Reply LinkBack Thread Tools Search this Thread
Old 11-05-2004, 15:33   #1 (permalink)
pixelpyro
Senior Member
 
Join Date: May 2003
Posts: 658
PHP site structure using search results

Hi Guys,

Don't really do PHP but been given a site to look at that by a potential client who want's a similar structure. Don't worry about the design.

This is a section page and when you click chairs it returns what appears to be a standard search result page. Any pointers as to how this is achieved - I appreciate it probably takes somebody with a little PHP knowledge but I would at least like to know what to look for.

http://www.distinction-furniture.co.uk/seating.php

He also likes the way that it has a range link that displays all available products from that range. Is this all achieved via a datatbase (MySQL?)

TIA
__________________
feel the heat.
  Reply With Quote
Old 11-05-2004, 17:15   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
Quote:
Originally Posted by pixelpyro
This is a section page and when you click chairs it returns what appears to be a standard search result page. Any pointers as to how this is achieved
It just sedns a variable on the end of the uri. In this case "search_term=chairs".

So his product page would have something like (shown here in the most basic of ways)

Code:
$product = $HTTP_GET_VARS['search_term']; if ($product == chairs) { query the database and show all the chairs } else if ($product == stool) { query the database and show all the stools } blah blah blah

Quote:
He also likes the way that it has a range link that displays all available products from that range. Is this all achieved via a datatbase (MySQL?)
yes.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 12-05-2004, 04:20   #3 (permalink)
pixelpyro
Senior Member
 
Join Date: May 2003
Posts: 658
thanks smallbeer

do you know of any articles/site that would point me in the right direction and give me a better understanding of the whole process.

cheers
__________________
feel the heat.
  Reply With Quote
Old 12-05-2004, 04:33   #4 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,236
Hmmm, loads out there. I always find sitepoint very useful, both for the articles and the forums. Other than that, buy a book. this is the one I always recommend...

http://www.amazon.co.uk/exec/obidos/ASIN/067232525X

Everyone's different though.
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 12-05-2004, 04:35   #5 (permalink)
pixelpyro
Senior Member
 
Join Date: May 2003
Posts: 658
cheers mate
__________________
feel the heat.
  Reply With Quote
Old 12-05-2004, 22:05   #6 (permalink)
lamonts28
Registered User
 
Join Date: May 2004
Location: chicago, IL
Posts: 10
how do i redirect a web page using php.
  Reply With Quote
Old 13-05-2004, 06:46   #7 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,211
same as you would an html page.
  Reply With Quote
Old 28-05-2004, 08:34   #8 (permalink)
press711
@help
 
press711's Avatar
 
Join Date: May 2004
Posts: 10
with php to redirect the page
<?php
header("Location: http://www.example.com/");
?>
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8