allora per quelloc he vuoi fare tu il codice di margerite andava bene, però nel tuo html c'è una cosa che non và: al posto di MovieType nei menu a discesa devi mettere collana e argomento.
questo codice ricava i cinque dati mandati dalla form html e ti crea la query da eseguire.Codice PHP:$whereClause = "";
if (! empty($_GET['isbn_10'])) {
$whereClause = "isbn_10='$_GET['isbn_10']'";
}
if (! empty($_GET['autore'])) {
if (! empty($whereClause)) {
$whereClause .= " and ";
}
$whereClause .= "autore='$_GET['autore']'";
}
if (! empty($_GET['titolo'])) {
if (! empty($whereClause)) {
$whereClause .= " and ";
}
$whereClause .= "titolo='$_GET['titolo']'";
}
if (! empty($_GET['collana'])) {
if (! empty($whereClause)) {
$whereClause .= " and ";
}
$whereClause .= "collana='$_GET['collana']'";
}
if (! empty($_GET['argomento'])) {
if (! empty($whereClause)) {
$whereClause .= " and ";
}
$whereClause .= "argomento='$_GET['argomento']'";
}
if (! empty($whereClause)) {
$whereClause = " where ".$whereClause;
}
$queryvar = "select * from tabella $whereClause ";



Rispondi quotando