PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 02-04-2005, 11:33 AM   #1
clueless
Green Mole
 
clueless's Avatar
 
Join Date: Feb 2005
Location: usa
Posts: 9
categories and then edit search_function.ph

I need some help with editing the search_function.php

I have already created tables in mysql for categories and products and would like to know how I can edit search_function.php to query based on category and products. This was touched upon in an old thread but I could not post my question there. Any help would be tremendiously appreciated! Thanks in advance. Please be as specific as possible as to where within search_function.php I would have to edit and if at all I have to make changes in any other files.....I am a newbie
__________________
I wish I knew!

Last edited by clueless; 02-04-2005 at 11:35 AM.
clueless is offline   Reply With Quote
Old 02-04-2005, 01:29 PM   #2
clueless
Green Mole
 
clueless's Avatar
 
Join Date: Feb 2005
Location: usa
Posts: 9
jmitchell sorry to bud in, but it would be of interest to me as well, I have figured a way to do this, I have added category and product tables to mysql but now need to have the link results to categories go into this table I am assuming that I now have to edit my search_function.php can you help with this?
__________________
I wish I knew!
clueless is offline   Reply With Quote
Old 02-04-2005, 01:46 PM   #3
jmitchell
Orange Mole
 
Join Date: Dec 2004
Location: Tennessee
Posts: 60
where is the category and product info? Is it in the page that you are trying to index? Is it in a feed somewhere that you can parse and add to the DB?

Need more info before I can attempt to help,

JMitchell
__________________
60,000 pages indexed!!!!! http://www.sharemylink.com
jmitchell is offline   Reply With Quote
Old 02-04-2005, 01:54 PM   #4
clueless
Green Mole
 
clueless's Avatar
 
Join Date: Feb 2005
Location: usa
Posts: 9
thanks so much for your reply, well let me see if I can explain so that it makes sense, I would like to spider pages for categories/products and return the pricing results on my site sort of like comparisons shopping but better! Well....now I have added tables to mysql which are to hold the products and categories now I need to know what I can do to return the results (preferably with pictures) I was thinking that I would have to edit my search_function.php in order for it to store the results? or even grab them? I also have another quest I need to grab the pricing info on these products so that they can be searchable on my site
Thanks a million....
__________________
I wish I knew!
clueless is offline   Reply With Quote
Old 02-04-2005, 03:06 PM   #5
jmitchell
Orange Mole
 
Join Date: Dec 2004
Location: Tennessee
Posts: 60
I think that a custom php script would be better for your indexing. It would have to be looking for certian criteria (and it would be easier if your product pages had attributes around the things that you were trying to index, such as a comment around it) that you would then make a script that went and looked for those, and grabbed them.

those are my initial ideas.

JMitchell
__________________
60,000 pages indexed!!!!! http://www.sharemylink.com
jmitchell is offline   Reply With Quote
Old 02-04-2005, 05:25 PM   #6
clueless
Green Mole
 
clueless's Avatar
 
Join Date: Feb 2005
Location: usa
Posts: 9
jmitchell thanks so much for your suggestion ......where do I begin, how would I include the custom script and do you have any pointers as to how I can get started on this script....I am not only new to PHPDig but also to PHP and would kinda need some help....if you're up for it.

I would not know where to start

I guess the tags would be looking something like this

<input name="cmd" type=hidden value='changeZipcode'>
<input name="newUnits" type=hidden value=''>
<input name="tag" type=hidden value=''>
<input name="category" type=hidden value='IT'>
<input name="offer" type=hidden value=''>
<input name="sort" type=hidden value='null'>
<input name="pdir" type="hidden" value="5">
<input name="node" type="hidden" value="500001">
<input name="lgsearch" type="hidden" value="">

<a name="refprice"><b>By Price:</b></a><br></div>

Honestly I am so in need of help with this......pleeease!
__________________
I wish I knew!
clueless is offline   Reply With Quote
Old 02-04-2005, 05:35 PM   #7
clueless
Green Mole
 
clueless's Avatar
 
Join Date: Feb 2005
Location: usa
Posts: 9
Tired......

these would probably be the tags I'd be looking something long those lines...
<b>$712.95</b></a><div class="buyAtSeller">
I need to return the price, product, description and a link of where to get it and all of this I want to incorporate in a custom results page which when the link to the product is clicked will open a new window...oh boy the rate I am going learn as I go I will have great grand kids by time I finish this project

Thanks again Jmitchell
__________________
I wish I knew!
clueless is offline   Reply With Quote
Reply


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit/change existing & static html meta tag? parikh13 How-to Forum 0 02-13-2008 03:16 AM
Categories test1984 How-to Forum 0 03-28-2007 01:17 PM
$site variable is not propagated to search_function.php RonHoef How-to Forum 0 03-04-2006 11:03 PM
search_function.php: allow to exclude path(s) [based on 1.8.7] blueyed Mod Submissions 0 01-27-2005 04:13 AM
libs/search_function.php extended and beautified blueyed Mod Submissions 1 12-13-2004 05:02 AM


All times are GMT -8. The time now is 12:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.