Advanced search  


cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.

Pages: [1]   Go Down

Author Topic: add a search by year in search.php (old version)  (Read 9058 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 5
add a search by year in search.php (old version)
« on: July 04, 2008, 10:03:13 am »

here is part of the search .php code I want to modify for the year search
Code: [Select]

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

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

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>";



Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
Re: add a search by year in search.php (old version)
« Reply #1 on: July 04, 2008, 01:10:39 pm »

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?
Pages: [1]   Go Up

Page created in 0.023 seconds with 21 queries.