how to show the data from a myqsl database in a post [closed]

use:
$myrows = $wpdb->get_results( “SELECT id, name FROM mytable” );

then use $myrows in for or foreach loop.

Reference WP wpdb class:

http://codex.wordpress.org/Class_Reference/wpdb