advanced code snippet search
gdonald on 09/26/06
mysql mysqli num rows
09/26/06 07:35am09/26/06 07:34am
1 person have marked this snippet as a favorite
vali29
function sqlNumRows( $query ){ if( in_array( 'mysql', $GLOBALS[ 'loaded_extensions' ] ) ) { return mysql_num_rows( $query ); } elseif( in_array( 'mysqli', $GLOBALS[ 'loaded_extensions' ] ) ) { return mysqli_num_rows( $query ); }}
Report this snippet Tweet
Comment:
You need to login to post a comment.