I have 2 tables makers and cars.
makers have 2 columns make_id & make.make_id of this table is used as foreign key
in cars table.cars table have 3 columns car_id,make_id,price.
Now i want to show the values against make_id in makers table. Now its not displaying value it just display id .
<?php
$conn=mysqli_connect("localhost","root","","practice");
if($conn-> connect_error){
die("Connection field:". $conn-> connection_error);
}$sql="SELECT car_id,make_id,price from cars ";
$result=$conn->query($sql);
if($result->num_rows>0){
while($row=$result->fetch_assoc()){
echo"<tr><td>".$row["car_id"]."</td><td>".$row["make_id"]."</td>
<td>".$row["price"]."</td></tr>";
}
echo"</table>";
}else {
echo"0 result";
}
$conn->close();
?>