Re: MySQL equivalent for odbc_result_all()???????

From: Date: Wed, 09 Jun 2004 22:17:41 +0000
Subject: Re: MySQL equivalent for odbc_result_all()???????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187993@lists.php.net to get a copy of this message
Some old piece of source i found in my libs: function sql_dump_result ( $result ) { $line = ''; $head = ''; while ( $temp = mysql_fetch_assoc( $result ) ){
    if ( empty ( $head ) ) {
      $keys  = array_keys($temp);
      $head  = '<tr><td><b>'.implode('</b></td><td><b>',$keys).'</b></td></tr>';
    }
    $line .= '<tr><td>'.implode('</td><td>',$temp).'</td></tr>';
} return '<table border="0">'.$head.$line.'</table>'; } maybe this helps :-) Scott Fletcher wrote:
I noticed there is no MySQL equivalent for odbc_result_all(), so it meant I had to make a user-defined function from scratch. That part, I haven't been able to do very well. Does anyone have a good code or whip up one that would work. Thanks... FletchSOD


« previous php.general (#187993) next »