View Single Post
  #30  
Old 12-11-2003, 02:41 PM
 
jordan0 jordan0 is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: San Francisco, CA
Posts: 77
 

Default Division by zero, line 149

Thanks Tuner!

I have installed the code above, keeping the session ID parts from the previously posted 3.4.8 search script. The search works somewhat (it will return results, but "super car kit" still does not find "car kit") and I get a warning:
Warning: Division by zero in /home/jordan0/www/kitkraft/customer/search.php on line 149
I've looked at line 149 and I don't even know where to start with this one
What can I do?
- Jordan

** Added Dec.11 **
Tuner Б─⌠ I have tested out the search function on LandSpeedRacing.com and found that it returns results the same way. I searched for "Super Block Saver" and got no results, but found your block saver items by searching for just "Block Saver"
I think it would make the search function much more effective if it worked in this way. Customers searching for an item of a certain brand may find that another one suits their needs better.
**

** Added Dec.11 **
After more thought on the subject, I've decided its best to leave the search function the way it is. I will include a note on the "no results found" page suggesting that users remove words from their query.
**
__________________
Jordan Sitkin
http://www.kitkraft.biz
X-Cart 4.0.18 [unix]
Reply With Quote