PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table country (code varchar(3), name varchar(64));
Copy Clear
Copy Format Clear
<?php $result = $mysqli->execute_query( "SELECT code, name FROM country WHERE code = ? ", ['ru']); /* Get the number of rows in the result set */ $row_cnt = $result->num_rows; printf("Result set has %d rows.\n", $row_cnt);
Show:  
Copy Clear