SHARE
TWEET

Database Folder SRC Code

AntonKorzhan7 Oct 15th, 2019 (edited) 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include 'conn.php';
  3. $sql = "SELECT * FROM `karl_view`";
  4. $params = array("");
  5. $data = getData($sql,$params);
  6. //var_dump($data);
  7. ?>
  8. <!DOCTYPE html>
  9. <html lang="en">
  10.   <head>
  11.     <meta charset="utf-8">
  12.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  13.     <meta name="viewport" content="width=device-width, initial-scale=1">
  14.  
  15.     <title>Bootstrap 4, from LayoutIt!</title>
  16.  
  17.     <meta name="description" content="Source code generated using layoutit.com">
  18.     <meta name="author" content="LayoutIt!">
  19.  
  20.     <link href="css/bootstrap.min.css" rel="stylesheet">
  21.     <link href="css/style.css" rel="stylesheet">
  22.  
  23.   </head>
  24.   <body>
  25.  
  26.     <div class="container-fluid">
  27.     <div class="row">
  28.         <div class="col-md-12">
  29.             <div class="row">
  30.                 <div class="col-md-3"><h3>Student Firstname</h3></div>
  31.                 <div class="col-md-3"><h3> Student Surname</h3></div>
  32.                 <div class="col-md-3"><h3> Teacher First Name</h3></div>
  33.                 <div class="col-md-3"><h3> Teacher Surname</h3></div>
  34.             </div>
  35.         <?php for($i=0;$i<count($data);$i++){ ?>
  36.         <div class="row">
  37.             <div class="col-md-3"> <p><?php echo $data[$i]["Firstname"]?></p></div>
  38.             <div class="col-md-3"> <p> <?php echo $data[$i]["Surname"]?></p></div>
  39.             <div class="col-md-3"> <p> <?php echo $data[$i]["Teacher_Firstname"]?></p></div>
  40.             <div class="col-md-3"> <p> <?php echo $data[$i]["Teacher_Surname"]?></p></div>
  41.         </div>
  42.         <?php } ?>
  43. </div>
  44.  
  45.     <script src="js/jquery.min.js"></script>
  46.     <script src="js/bootstrap.min.js"></script>
  47.     <script src="js/scripts.js"></script>
  48.   </body>
  49. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top