I would like to get the results only from the second query in this multiquery statement. Presently, the way I have it constructed I get the results from both query statements:
$query = ("call calcfields2_new('$_SESSION[Userid]');");
$query .= "SELECT * FROM CalcFields WHERE Userid=$_SESSION[Userid]";
if (mysqli_multi_query($dbc, $query)) {
do {
if ($result = mysqli_store_result($dbc)) {
while ($row = mysqli_fetch_assoc($result)) {
$array1[]=$row;
}
mysqli_free_result($result);
}
if (mysqli_more_results($dbc)) {
}
}
while (mysqli_next_result($dbc));
}
}
echo(json_encode($array1));