add a search by year in search.php (old version) add a search by year in search.php (old version)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

add a search by year in search.php (old version)

Started by johnmb, July 04, 2008, 10:03:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

johnmb

here is part of the search .php code I want to modify for the year search

<tr>
<td class="tableb">
Reason for holding
<br />
<?php
$reasons list_reason();
$num_reasons mysql_num_rows($reasons);
?>


<select name="reason_id" class="listbox">
<?php

for ($x=0$x <$num_reasons$x++)
{
$row_reasons mysql_fetch_array($reasons);

$reason_count count_reason($row_reasons[reason_id]);
echo "<option value=\"$row_reasons[reason_id]\" ";
if ($reason_id == $row_reasons[reason_id])
{
echo "selected";
}

echo ">";
if ($row_reasons[reason] != '')
{
echo "$row_reasons[reason] ($reason_count)";
}  
echo "</option>";

}
?>


</select>
</td>
</tr>

Joachim Müller

That piece of code looks like wishfull thinking to me. There is no actual query run, so what should be processed? How is this related to pnCPG?