Personally, I now use the MySQL Improved extension.
If you choose to use it in the procedural way it can be used in a very similar manner to how you're currently using the old MySQL extension.
Example (MySQL):
$result = mysql_query($query);
if (!$result) die ("Database access failed: " . mysql_error());
$rows = mysql_num_rows($result);
Example (MySQL Improved):
$result = mysqli_query($query);
if (!$result) die ("Database access failed: " . mysqli_error());
$rows = mysqli_num_rows($result);
However, I use MySQL Improved in an object orientated manner.
More information can be found here: http://www.php.net/manual/en/book.mysqli.php