I want to search a product detail from multiple sql table. I used these queries which do not work. I found many post about this topic but I cannot apply any of them.
Every table has the same structure like (I have 14 table in this category)
id | name | cast | detail | date
I tried:
Method 1:
$result = mysqli_query($db,"SELECT movie.*, audio.*
FROM movie,audio WHERE movie.name='$name' OR audio.name='$name'");
Method 2:
$result = mysqli_query($db,"SELECT *
FROM movie,audio WHERE movie.name='$name' OR audio.name='$name'");
Method 3:
$result = mysqli_query($db,"SELECT * FROM movie,audio WHERE name='$name'");