php - Call to undefined method mysqli_stmt::fetchColumn() -


I'm trying to get the number of rows returning from a SQL query

  Need_once ("inc / db_const.php"); $ Date = $ _ receive ['date_rdv']; $ Mysqli = new mysqli (DB_HOST, DB_USER, DB_PASS, DB_NAME); If ($ mysqli-> connect_errno) {echo " mysql error does not {$ mysqli-> connect_errno}: {$ mysqli-> connect_error}  "; Go out(); } $ Query_check = "Select number (*) from plan_cl where date_plannig =?"; $ Statement_check = $ mysqli-> Ready ($ query_check); $ Statement_check-> Bind_param ('s', $ date); $ Statement_check-> Executed (); $ Rdv_verif = $ statement_check-> FetchColumn (); Echo $ rdv_verif;  

But this gives me this error

  r: call the undefined method mysqli_stmt :: fetchColumn ()  

Anyone can give me some solution to solve this problem

any Mysqli_stmt :: fetchColumn is not () View in MySQLi This is a PDO method.

To use MySQLi

  $ rdv_verif = $ statement_check-> Mysqli_stmt_num_rows (); Echo $ rdv_verif;  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -