This is my sql function
CREATE FUNCTION returnPrice(price int,member int)
RETURNS INT
BEGIN
RETURN(price*member);
END;
And this is my php code
$res1= "CALL returnPrice('$cost','$team_member')";
$rs1 = mysqli_query($con,$res1);
$row1= mysqli_fetch_array($rs1);
And then i got error like
'Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in' in $row1... line
I don't know what is wrong. pls help