$strsql="select * from busway where s_way = '$p' AND f_way = '$p2' AND d_start = '$d_start'";
$objQuery = mysql_query($strsql) or die ("Error Query [".$strsql."]");
Code (PHP)
$Sql="SELECT busway.s_way, busway.f_way, bus.radub, bus.teenang
FROM busway
INNER JOIN bus
ON busway.id_bus=bus.id_bus";
$obj=mysql_query($Sql)or die ("Error Query [".$Sql."]");
SELECT busway.s_way, busway.f_way, bus.radub, bus.teenang
FROM busway
INNER JOIN bus
ON busway.id_bus=bus.id_bus
where busway.s_way = '$p' AND busway.f_way = '$p2' AND bus.d_start = '$d_start'"