wondernet Posted June 30, 2004 Posted June 30, 2004 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?? Quote
wondernet Posted July 1, 2004 Author Posted July 1, 2004 (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 July 1, 2004 by wondernet Quote
wondernet Posted July 1, 2004 Author Posted July 1, 2004 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 Quote
Recommended Posts
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.