Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'kapcsolat.php';
- $result = $db->query(sprintf("SELECT * FROM `likeok`")) or die("szeva");
- if($result->num_rows){
- while($table = $result->fetch_assoc()){
- $newsid = $table['id'];
- $userid = $table['userid'];
- $likeoltad = $table['likeoltad'];
- $like = $table['like'];
- echo '<table border = "1">';
- echo '<tr>';
- echo '<td>'.' | hir: '.$table['news'].'</td>';
- echo '</tr>';
- echo '<tr>';
- if($likeoltad=='0'){
- echo '<td> <a href="./feldolgozo.php?news='.$newsid.'&user='.$userid.'">LIKE</a>'.$table['like'].'</td>';
- }else{
- echo '<td> <a href="./feldolgozo.php?news='.$newsid.'&user='.$userid.'">DISLIKE</a>'.$table['like'].'</td>';
- }
- echo '</tr>';
- echo '</table>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement