So I have a query that works with a DB2 database just fine as a part of my code.
Let's say it's something really simple like:
$sql = "SELECT * FROM Mytable";
How can I express the mysql_num_rows
PHP function to work with a DB2 database ad not MySQL?
$numrows = mysql_num_rows($query);