(PHP 3 = 3.0.3, PHP 4 )
After preparing or executing a query, this call gives you the number of columns in the query.