Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
I need search functionality for my site
Old 01-06-2006, 08:37 AM I need search functionality for my site
Extreme Talker

Posts: 183
Trades: 0
hi all , im new to php and have just built the following site using php www.frodop.com as you can see from the site there is tons of information on loads of subjects. I need to add a search function to the site so users can search for particular articles/information. What i have at the momment are the following files :

ads-body.inc
ads-top.inc
ads-links.inc
bottom.inc
rss
top.inc
css

these files are all in the /inc folder of every subdomain i.e www.frodop.com/acne/inc/...... etc .

What do i need to add to in order to display a search box at the top of everypage , do i add some code to top.inc in every subdomian?

im not sure at all what to do...any help would be welcomed thanks

jeffmcsheff is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-06-2006, 01:20 PM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Anything you add to top.inc will show up in any page where top.inc is included. I can't see what's actually in top.inc or what files are including it, but I assume it's the the code for the heder on your page so given that assumption it would probably be the best file to add your search function.

I don't see any subdomains on your site. Did you mean in every directory?

You should already have the php include statements on your pages since they're already pulling in the code for top.inc and you should only need to add your search code to top.inc for it to then be included in all your pages.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-06-2006, 02:05 PM
Extreme Talker

Posts: 183
Trades: 0
sorry they are in the directory folders ie /acne/inc or /blogging-rss/inc or /email-marketing/inc . So all i need to do is add the search code to each and every top.inc file in all directories? Do you the code for the search function at all?

cheers vangogh
jeffmcsheff is offline
Reply With Quote
View Public Profile
 
Old 01-06-2006, 05:53 PM
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Hey Jeff,

That's what I thought. Are the top.inc files different in each folder? If they're the same code you really only need one. You would just need to alter the path to the file for the different directories.

I don't have code for a search function, but I know there are plenty out there. Try either

http://www.hotscripts.com/
http://php.resourceindex.com/

Both have plenty of scripts that are ready or just need a little tweaking.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to I need search functionality for my site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25902 seconds with 12 queries