prueba asi
Código PHP:
Ver original$serverConexion -> select_db($databaseA)or
die($databaseError); $sql = "SELECT * FROM table1";
$prepare = $serverConexion -> prepare($sql);
$prepare -> execute();
$prepare -> store_result();
$TotalRows = $prepare -> num_rows;
$prepare -> close();