Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 06:09:16 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Private messages disabled
Caused by the massive abuse of the PM system in the past, the sending of personal messages has been disabled for all regular users on the Coppermine forum.
[more]
   Home   Help Search Board rules Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: add a search by year in search.php (old version)  (Read 3633 times)
0 Members and 1 Guest are viewing this topic.
johnmb Topic starter
Coppermine newbie

Posts: 5


« on: July 04, 2008, 09:03:13 am »

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

<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>
Logged
Joachim Müller
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #1 on: July 04, 2008, 12: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?
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.045 seconds with 17 queries.