Posted By

gdonald on 09/26/06


Tagged

mysql mysqli num rows


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


php mysql/mysqli num rows


 / Published in: PHP
 

  1. function sqlNumRows( $query )
  2. {
  3. if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) )
  4. {
  5. return mysql_num_rows( $query );
  6. }
  7. elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) )
  8. {
  9. return mysqli_num_rows( $query );
  10. }
  11. }

Report this snippet  

You need to login to post a comment.