I am trying to find the number of rows in a table and have tried the following:
$query = $mysqli->query("SELECT * FROM tablename WHERE DIR='$dir'");
$num_rows = mysql_num_rows($query);
but i get the following warning when the script is run
Warning: mysql_num_rows() expects parameter 1 to be resource, object given
any ideas?