Where is "z" coming from ?
From que query string ($GET) or is it posted through a form ($GET or $_POST) ?
If yes, if the request method is get, then you'll access it with this : $GET['z'], if it is post, then $POST['z']
Also, always sanitanize user-entered data sent to a database...
In this case...
<?php
include 'koneksi.inc.php';
$select = "select *
from zodiak tb
where tb.zodiak='" . mysql_real_escape_string($_GET['z']) . "'";
?>
(or $_POST['z'] ...)