View Single Post
  #6  
Old 04-12-2004, 05:20 PM
 
Emerson Emerson is offline
 

X-Man
  
Join Date: Mar 2004
Location: Atlanta, GA
Posts: 2,209
 

Default

While trying to figure out how to fix the count problem, I came across this.

I changed...
Code:
$sql_q = mysql_query("select search_text, search_count from search_queries_sorted order by " . $HTTP_POST_VARS['sortorder'] . " " . $HTTP_POST_VARS['ascdsc']);

to

Code:
$sql_q = mysql_query("select search_text, search_count+1 from search_queries_sorted order by " . $HTTP_POST_VARS['sortorder'] . " " . $HTTP_POST_VARS['ascdsc']);

...which should have fixed the problem.
However, the results are blank.

I tried running the query manually via phpMyAdmin and it works fine.

Anyone have any ideas what could be causing the problem?
__________________
Emerson
Total Server Solutions LLC- Quality X-Cart Hosting
Recommended X-Cart Hosting Provider - US and UK servers
Does your host backup your site? We do EVERY HOUR!!!
Shared Hosting | Managed Cloud | Dedicated Servers
Reply With Quote