SELECT * FROM table1 LEFT JOIN table2 ON (table1.name=table2.name) WHERE table2.nameIS NULL
$items=array();
while($row=mysqli_fetch_assoc($res)){$items[] = $row;}
<?php foreach ($items as $index_items): ?>
<?php echo $index_items['name'];?>
SELECT * FROM `table2` WHERE tag= 'fantasy' OR tag= 'comedy' OR tag= 'drama'
$.ajax({
url: 'upload.php',
dataType: 'text',
cache: false,
contentType: false,
processData: false,
data: form_data,
type: 'post',
success: function Addimg(){
$("#div").append('<div class="divme"><img style="width:100%;height:100%;margin-left:0px;border-bottom:1px solid #dbdbdb;" src="http://buybuy/uploads2/'+fileName+'"></div>');
var block2 = document.getElementById("div");
block2.scrollTop = 9999;
}
});