Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I'm working with this contribution in the admin section;

 

http://www.oscommerce.com/community/contributions,375

 

I've had to improve the code slightly (just display parts) but the 'products returned' part of the list is not displaying the products that were found using the search term used.

 

Anyone use this contribution and got it working??

Posted (edited)

Ok sorted this out, but now I'm getting an SQL error on the advanced_search_results.php page.

 

When the results are more than the required number for a single page I'm getting an SQL error. The offending bit of code is the bit at line 350-356 (rouglhy speaking);

 

// stats_keywords.php
?$report_search_keywords = strtolower(addslashes($HTTP_GET_VARS['keywords']));
?$query = "insert into search_queries (search_text,search_result) ?values ('" .
?$report_search_keywords . "','" . ?$search_result . "')";
?tep_db_query("insert into search_queries (search_text,search_result) values ('" . ?
?$report_search_keywords . "','" . ?$search_result . "')");
// stats_keywords.php_eof

 

Something in this is wrong.

 

PS. Anyone know how to contact 'Mark Juric', who authored this contribution??

 

PPS. a good mod to this is that the listing on the admin/report section actually links through to the product as well.

Edited by wondernet
Posted

I think it has something to do with the product title.

 

If the product has an inverted comma - ' - then the SQL query bums out. How do I overcome this?? Please

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...