http://www.website.com/search.php?skip=7&do=search&search=withhttp://www.website.com/search.php?do=search&search=with&category=&year=0&month=0&day=0&search_boolean=orhttp://www.website.com/search.php?do=search&search=with+and&category=&year=0&month=0&day=0&search_boolean=or&skip=7http://www.website.com/search.php?do=search&search=the+search&category=&year=0&month=0&day=0&search_boolean=or
http://www.website.com/search.php?skip=7
<a href="'.($_GET['search'] ? '?do=search&search='.$_GET['search'] : '').'&category=&year0=&search_boolean=and'.$PHP_SELF.'&skip='.($skip - $number).'">\\1</a><a href="'.($_GET['search'] ? '?do=search&search='.$_GET['search'] : '').'&category=&year0=&search_boolean=and'.$PHP_SELF.'&skip='.($skip + $number).'">\\1</a>
<a href="'.($_GET['search'] ? '?do=search&search='.$_GET['search'] : '').'&category=&year0=&search_boolean=and'.$PHP_SELF.'&skip='.$pages_skip.'">'.$j.'</a>style="display: none"&category=&year0=&search_boolean=and <form action="./admin/search.php" method="post">
<input name="do" type="hidden" value="search">
<input type="text" name="search" id="search" value="" />
<input type="submit" name="submit" id="submit" value="Zoek!" />
</form>
The problem is that if I input multiple words, I get no results, as if it doesn't search. If I input only one word, the results do show.
http://www.yoursite.com/search.php?do=search&search=your+search&category=&year=0&month=0&day=0&search_boolean=and
http://www.yoursite.com/search.php?do=search&search=word
<form method="get" action="search.php">
<input name="do" type="hidden" value="search">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" colspan="2">
<p align="center">
<input type="text" name="search" size="44" value="<?=$search; ?>"><font size="2"> </font><select size="1" name="category"><option value="">All</option><?=category_get_tree(' ', '<option value="{id}"[php]search_this_cat({id})[/php]>{prefix}{name}</option>'); ?></select><tr>
<td style="display: none" width="100%"><nobr><font size="2"> </font></nobr><font size="2">
</font>
<td style="display: none" width="1%"><?=makeDropDown($syear, 'year', $year); ?>
<font size="2">/<?=makeDropDown($smonth, 'month', $month); ?>/<?=makeDropDown($sday, 'day', $day); ?>
</font>
<tr>
<td width="100%" colspan="2">
<p align="center">
<font style="font-size: 9pt">Any word</font><input type="radio" name="search_boolean" value="or"> <font style="font-size: 9pt">All words</font><input type="radio" name="search_boolean" value="and" checked></font>
<input type="submit" value="Search"></table>
</form>Also, how would it be possible to have the results shown on a predefined page instead of showing search.php? Would I need to use $user_query?
<form action="./admin/search.php" method="post"><form method="get" action="whatev.php"><?php
$number = "10";
include("admin/show_news.php");
?>http://www.yoursite.com/$skip=10
$_GET['search'] ? 'Here comes the search pagination' : 'Here comes the normal pagination'scottdallas wrote:Uhoh, I just found out making all those changes to show.news.php makes the search pagination work but normal pagination breaks.
For example if you had index.php with basic include code:
- Code: Select all
<?php
$number = "10";
include("admin/show_news.php");
?>
It would display 10 results and the pagination would link to this:http://www.yoursite.com/$skip=10
Any idea how to get it to work with both pagination?
Warning: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 44900 in /home/xxxx/public_html/mysql.class.php on line 215
Return to Additional Downloads
Users browsing this forum: No registered users and 0 guests