Advertisement
Sparkster

Untitled

Jul 25th, 2013
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $query = $pdo->prepare("SELECT profile_comments.*, users.username FROM profile_comments, users WHERE users.id = profile_comments.user_id_judge");
  2. $query->bindValue();
  3. $query->execute();
  4. $profile_comments = $query->fetch();
  5.  
  6.  
  7. foreach ($pdo->query($profile_comments) as $comments) {
  8.   echo "<tr><td>" . $comments['id'] . "</a></td><td>" . $comments['comment'] .  "</td><td>";
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement