kulbhooshan @ WP Paging

kulbhooshan

I have some urls on a page and I want to implement paging on it. How can I do that?
get_results(”SELECT * FROM wp_socialboomarking;”);

echo ”;
echo ‘Social Bookmarking Sites';
foreach($query as $post){
echo ””;
echo ”.$post->socialbookmarking_url.”;
echo ””;
}
echo ””;
?>
on this data I want to use paging.