<?
include("php_db_user.php");
$strSQL = "SELECT a.table_id FROM tb_table a INNER JOIN tb_booking b
ON a.table_id=b.b_idtable
WHERE b_date = '".$_POST['date']."' and b_time = '".$_POST['time']."' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
while($objResult = mysql_fetch_array($objQuery))
{
<?=$objResult["table_id"];?>
}
mysql_close();
?>