<% include "dbaccess.php"; include "dbsearch.php"; %> Guy Fonck Jazz Photography - Search
Return to home page A page about me Links to other websites
 
<% echo $searchResultHeader%>

<% $currentRow = 0; $lastMusician = ""; while (($pictureRow = mysql_fetch_array($searchQueryResults)) && ($currentRow < $endRow)){ extract($pictureRow); $currentRow++; if ($currentRow >= $startRow) { // skip over rows shown on previous page // check if we start the list for a new musician and print a header if ($lastMusician != $pictureRow['LNAME']){ $lastMusician = $pictureRow['LNAME']; $trOutput = ""; echo $trOutput; } if ($PICFORMAT == 'landscape') { $width = $thLandscapeWidth; $height = $thLandscapeHeight; } else { $width = $thPortraitWidth; $height = $thPortraitHeight; } %> <% } } %>
".$pictureRow['FNAME']." ".$pictureRow['LNAME']."
<% echo $pictureRow['PICTITLE']%>
<% if ($currentRow > $resultsPerPage){%>
<<
<%}%>
  <% if ($currentRow < $nbrSearchResults) {%>
>>
<%}%>

<% $targetPicture = $startRow + $mainPicOffset; $pictureCounter = 1; $searchQueryResults = mysql_query($strSQL) or die(mysql_error()); while ($pictureRow = mysql_fetch_array($searchQueryResults)) { if ($pictureCounter == $targetPicture){ %>
&SearchByName=SearchByName" title="Click here to access all photos featuring this musician">  <% echo $pictureRow['FNAME'];%> <% echo $pictureRow['LNAME'];%> > <% echo $pictureRow['PICTITLE'];%>
 
<% if ($pictureRow['PICFORMAT'] == "portrait") {%>
<% echo $pictureRow['PICDESCRIPTION']%>

<% if ($pictureRow['PICDATE'] != "1900-12-31"){ echo date("M j Y",strtotime($pictureRow['PICDATE'])); }%>

<% echo $pictureRow['PICLOCATION']%>

 
<%} else {%>
<% echo $pictureRow['PICDESCRIPTION']%> – <% if ($pictureRow['PICDATE'] != "1900-12-31"){ echo date("M j Y",strtotime($pictureRow['PICDATE'])." –"); }%> <% echo $pictureRow['PICLOCATION']%>
 
<%}%>
<%} $pictureCounter++; } %>