$buscar = $_POST['buscar'] ; $sql = "SELECT * FROM photo_order WHERE impresion_nombre = '$buscar' AND edicion_nombre NOT NULL ORDER BY numero_orden";