When the result is limited to 1, everything works great.
However, when I have more than 1 results...it doesn't return anything.
$output = $conn->multi_query("CALL `test_discount`('022979', 1101, 1, 'W', 100, @out); SELECT @out AS `discount`;");
if ($output == true){
while($conn->next_result()){
$result = $conn->store_result();
while ($row = $result->fetch_assoc()){
print_r($row);
break;
}
if($conn->more_results() == false) { break; };
}
}
Am guessing I am doing something wrong?