Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <?php
  2. require('head.php');
  3. require('include.php');
  4. include('header.php');
  5.  
  6. $imgdir ="admin/images/";
  7. error_reporting(E_ALL); ini_set('display_errors', 1);
  8. ?>
  9.  
  10.  
  11. <?php
  12. include("includes/db.php");
  13.  
  14. $sql = "
  15. SELECT * FROM artisti where idartista =" .$_GET['id'];
  16.  
  17. $result = $con->query($sql);
  18. if ($result->num_rows >0)
  19. while ($row = $result->fetch_assoc()):?>
  20.  
  21. <h2> <?php echo $row['nome'];?> </h2>
  22. <img src="<?php echo $imgdir."img".$row['img'];?>">
  23. <h3>biografia</h3>
  24. <p> <?php echo $row['bio'];?></p>
  25.  
  26. <?php
  27. endwhile;
  28. ?>
  29.  
  30. <h3>Concerti</h3>
  31. <table class='home-table' id=''>
  32. <tr>
  33. <th>Location</th>
  34. <th>Cittร </th>
  35. <th>Data</th>
  36. </tr>
  37.  
  38.  
  39. <?php
  40. $sql = "SELECT * FROM concerti where idartista =" .$_GET['id'];
  41. $result = $con->query($sql);
  42. if ($result->num_rows >0)
  43. while ($row = $result->fetch_assoc()) :?>
  44. <tr>
  45. <td> <?php echo $row['location']; ?> </td>
  46. <td> <?php echo $row['citta']; ?> </td>
  47. <td> <?php echo $row['data']; ?> </td>
  48. </tr>
  49.  
  50. <?php
  51. endwhile;
  52. ?>
  53. </table>
  54.  
  55.  
  56. <?php include('copyright.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement