Posts by Bill Rocha • 1 point
1 post
-
0
votes2
answers75
viewsA: View images that are in another table
As you are using PDO, replace it with the code below. In the result will come all the necessary data in a single query. $slug = $_GET['slug']; $stmt = $db->prepare("SELECT * FROM posts, imagens…