Jump to content

jeger003

Members
  • Posts

    260
  • Joined

  • Last visited

Everything posted by jeger003

  1. hey thanks sooo much i can't believe you did i tried to make it store it here is what i have so far.....does this look right? <?php include 'dbconfig.php'; if(isset($_POST['b'])) { echo 'Search Term: '.$_POST['b']['search_text']; } $search_text=$_POST['search_text']; $query="INSERT INTO searched (text) VALUES ('$search_text')"; ?>
  2. i take that back.........i just did a search in the Advanced Search and it does show "Search Term:(and what i searched for)" in the upper left corner of the site....it also works on the regular search.........im sorry i didnt see it the first time i must've scrolled down to quick. Thanks Nate!
  3. ok i did like you said and it didnt effect the code....as in it didn't have any errors or anything......search still works like it did before.....now im not sure if im supposed to see anything different cause i dont. thanks Nate!
  4. I went through the source and the code below is whats on it. <table border=0 cellpadding=1 cellspacing=0 width="100%"> <tr> <td class="search_box_text1">Enter Keywords:</td> </tr> <tr> <td nowrap> <INPUT type=hidden name=b[search_titles] value=1 > <INPUT type=hidden name=b[search_descriptions] value=1 > <INPUT name=b[search_text] type="text" size="15" maxlength="80" value="" > <INPUT type="submit" name="submit" value="Go"> </td> </tr> <tr> <td> </td> </tr> <tr> <td><a href="index.php?a=19" class="search_box_text2">>> Advanced Search</a></td> </tr> </table> </td> </tr> </form> </table> </th> </tr> </table> </th> </tr> I also added below another page i found called module_display_search_link.php i know the search is a module which is how the index page is able to show everything......it uses extensions like a=19 so for the search page its /index.php?a=19 the "?a=19" is referred to the search page....and its similar for every other page but with diff extension like "/index.php?a=5&b=184" which is the categories page.....btw its a classified site for selling stuff <? //module_display_search_link.php //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% $this->get_css($db,$show_module['page_id']); $this->get_text($db,$show_module['page_id']); $this->body = ""; if ($this->site_category) { $category_name = $this->get_category_name($db,$this->site_category); $this->body .= "<a href=".$this->configuration_data->CLASSIFIEDS_FILE_NAME."?a=19&c=".$this->site_category." class=search_link>".urldecode($this->messages[1470])." ".$category_name->CATEGORY_NAME."</a>"; } else $this->body .= "<a href=".$this->configuration_data->CLASSIFIEDS_FILE_NAME."?a=19 class=search_link>".urldecode($this->messages[1470]).urldecode($this->messages[1469])."</a>"; ?> i'll keep looking for stuff you are talking about that would help you........ive been going through other pages that would need to be used for the search
  5. i tried....it says i exceed the 40,000 characters. I did them in parts and one part would be less than a quarter it'll be more than 8 comment boxes so i put them on a free subdomain i use for testing http://microsolutions.net63.net/search_class.html i changed .php to .html and used <p> tags to have the code show up properly. its lined up as it is on my end in dreamweaver. i made attempts to search for "$_POST" nothing came up....i kind of know what your talkin about, about what i need to find......but with all this code its very overwhelming especially since i've no idea what im looking at. THANKS AGAIN NATE
  6. Hey Guys, First THANKS SOO MUCH for the reply. Greatly appreciating the help. Here is what i got on the search code. basically the site works from the index.php page. so everything goes through index.php and then it would "include" other php files to work together. if you look at the code below you might understand it. so the code below is whats found on the index.php and you can see that it includes search_class.php include_once("classes/search_class.php"); $search_the_classifieds = new Search_classifieds($db,$language_id,$user_id,$_REQUEST["c"],$filter_id,$state_filter,$zip_filter,$zip_distance_filter); if ($search_the_classifieds->configuration_data->IP_BAN_CHECK) $search_the_classifieds->check_ip($db); if($_REQUEST["b"] && $_REQUEST["order"]) { if(!$search_the_classifieds->Search($db, $_REQUEST["b"], $_REQUEST["change"], $_REQUEST["order"])) { if (!$search_the_classifieds->search_form($db,$_REQUEST["b"])) $search_the_classifieds->site_error($db); } } elseif($_REQUEST["b"]) { if(!$search_the_classifieds->Search($db, $_REQUEST["b"], $_REQUEST["change"])) { if (!$search_the_classifieds->search_form($db,$_REQUEST["b"])) $search_the_classifieds->site_error($db); } } else { if (!$search_the_classifieds->search_form($db, $_REQUEST["b"], $_REQUEST["change"])) $search_the_classifieds->site_error($db); } $db->Close(); if ($get_execution_time) get_end_time($starttime); exit; break;
  7. I want to collect what my users are searching for on my site with a basic search form. Basically i sell books and i want to be able to log what people are searching for on my site maybe log it into mysql. I have a small search engine on it (in php) and not sure really how i can make it log searches. I would have no problem starting from scratch if you guys can give a few ideas. i would appreciate any help. thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.