mysqli - PHP mysql->prepare() with IN clause in query not working - Post updated -



mysqli - PHP mysql->prepare() with IN clause in query not working - Post updated -

i having problem creating prepared statement, returns false , don't understand why. have looked other similar questions asked here @ stack overflow of little help , still stuck this.

i checked db connection , working fine. ran query toad , it's working.

$msqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname, $dbport); $prepstmt = $msqli->prepare("select lr.bank_id,lr.bank_name,lr.loan_rate msdb1.loan_rates lr lr.bank_id in ? , lr.from_amount = ? , lr.to_amount <= ? , lr.floating = ? , lr.salaried in ? , lr.professional in ? , lr.gender = ?");

the above statement returns false.

i have spent amount of time on it. new php programming. please help me out.

edit: forgot add together other things. in in clause making list ('val1','val2').

$prepstmt->bind_param("siissss", $bnkidfmtlist,$frmamt,$toamt,$inttype,$bind_sal,$bind_pro,$gender); $prepstmt->execute(); $prepstmt->bind_result($bank_id,$bank_name,$loan_rate);

php mysqli prepare

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -