You could use it this way
Category Name : <?php echo $result1["category_name"];??>
in your html portion of the page.
To display your category name. In the similar manner you can use the method to display other items too.
Hope I understood your question in a correct manner.