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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to