mark, model, year, dentro de los cuales hay varias filas.
Tengo un formulario con 3 campos de listas (mark, model, year) para seleccionar.
La acción del formulario se dirije al siguiente archivo php.
Código PHP:
<?php
$link = mysql_connect('localhost', 'root', 'localhost');
$db_selected = mysql_select_db('basededatos', $link);
$mark = $_POST['mark'];
$model = $_POST['model'];
$year = $_POST['year'];
$consulta = "SELECT mark, model, year FROM productos WHERE mark ='$mark' and model ='$model' and year ='$year' ";
$resultado = mysql_query($consulta,$link);
?>
Gracias de antemano.