function set_advanced($params)
{
    global $response;
    $response['codes'] = query_advanced($params);
}
Esempio n. 2
0
}
$composer_stmt = $mysqli->prepare($composer_query);
if (!$composer_stmt) {
    die($mysqli->error);
}
$year_stmt = $mysqli->prepare($year_query);
if (!$year_stmt) {
    die($mysqli->error);
}
$advanced_stmt = $mysqli->prepare($advanced_query);
if (!$advanced_stmt) {
    die($mysqli->error);
}
// $res = query_by_composer('Brahms, Johannes');
// $res = query_by_year(1999);
$res = query_advanced('symphony');
?>

<table>
<?php 
while ($row = $res->fetch_assoc()) {
    ?>
    <tr>
        <td><?php 
    print $row['composer'];
    ?>
</td>
        <td><?php 
    print $row['title'];
    ?>
</td>