I am unable to understand why I am unable to use echo statement properly here.
Link which passes get value to script
  http://example.com/example.php?page=2&hot=1002
Below is my script which takes GET values from link.
<?php
    session_start();
    require('all_functions.php');
    if (!check_valid_user())
    {
        html_header("example", "");
    }
    else
    {
        html_header("example", "Welcome " . $_SESSION['valid_user']);
    }
    require('cat_body.php');
    footer();
?>
cat_body.php is as follows:
<?php
    require_once("config.php");
    $hot = $_GET['hot'];
    $result = mysql_query( "select * from cat, cat_images where cat_ID=$hot");
    echo $result['cat_name']; 
?>
Please help me.
 
     
    