Got error like this (Php & mysql) -


This is my SQL function

  Returns the return return function (value int, member) INT return (value * member); End;   

And this is my php code

  $ res1 = "call return value ('$ cost', '$ team_member')"; $ Rs1 = mysqli_query ($ con, $ res1); $ Row1 = mysqli_fetch_array ($ rs1);   

And then I get an error

'Warning: mysqli_fetch_array () parameter 1 is expected to be mysqli_result, given in boolean' $ row1. .. Line

I do not know what is wrong. According to Pls help

returns FALSE on failure.

You can try the following to check the cause of the failure

  $ res1 = "call return value ('$ cost', ' $ Team_member ') "; $ Rs1 = mysqli_query ($ con, $ res1); If ($ rs1 === incorrect) {printf ("error:% s \ n", $ mysqli-> error); Die (); } $ Row1 = mysqli_fetch_array ($ rs1);    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -