Search
"; $result = mysql_query($sql); $compteur = 0; if(!$result){ echo ("No result available"); }else{ // On affiche les champs de recherche de l'utilisateur echo("
"); echo "Search Result ( ".mysql_num_rows($result)." ):
"; echo (""); if ($keywords_all != "") { echo "Keywords: ".strip_tags(stripslashes ($keywords_alls))."
"; } if ($keywords_what != "") { echo "What: ".strip_tags(stripslashes($keywords_whats))."
"; } if ($keywords_where != "") { echo "Where: ".strip_tags(stripslashes ($keywords_wheres))."
"; } if ($keywords_who != "") { echo "Who: ".strip_tags(stripslashes ($keywords_whos))."
"; } if ($keywords_when != "") { echo "When: ".strip_tags(stripslashes ($keywords_whens))."
"; } if ($keywords_how != "") { echo "How: ".strip_tags(stripslashes ($keywords_hows))."
"; } echo ("
"); echo("
"); while($row = mysql_fetch_array($result)){ echo ("
"); echo ("
"); $no_cat = $row["catalogue_no"]; $tableau = searchArtefact($no_cat); $tableau_nom = return_name($no_cat); if(file_exists($tableau['image_thumb'])){ echo ("\"".htmlentities($row["name"])."\""); } else { echo(" "); } echo ("
"); echo ("
"); echo ("

"); echo("Catalogue Number: ".utf8_encode($row["catalogue_no"])); echo("
"); echo("Institution: ".utf8_encode($row["institution"])); echo("
"); if(($row["name"]) != null) { echo("Name (English): ".utf8_encode($tableau_nom["name_e"])); echo("
"); echo("Name (French): ".utf8_encode($tableau_nom["name_f"])); echo("
"); echo("Name (Innu): ".$tableau_nom["innu_name"]); echo("
"); } echo("Place made: ".utf8_encode($row["place_made"])); echo("
"); echo("More information
\n"); echo ("

"); echo ("
"); echo ("
"); echo ("
          
"); } if (mysql_num_rows($result) > 3) { echo (" Search"); } } ?>