Hi,
Now i got your point 🙂 .
mysql_query will only run your query. To display the results you need to use mysql_fetch_array. See below example,
$size=1;
$sql="select type_id FROM type WHERE type_id=".$size;
$type_id= mysql_query($sql);
while($result=mysql_fetch_array($type_id))
{
echo $result['type_id']."<br/>";
}
Hope this is what you wanted.
Regards,
Niroshan