Guest User

Untitled

a guest
Mar 23rd, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <div class="card-body">
  2. <h5 class="card-title m-b-40" >Company Name</h5>
  3. <h6 style='font-weight: bold;'>Company Overview</h6>
  4. <h6>Annual Revenue: 2,000,000,000</h6>
  5. <h6>Employees: 150,000</h6>
  6. <h6>Industry: xxx</h6>
  7. <h6>Inherent Risk Industry: xxx</h6>
  8. </div>
  9.  
  10. <?php
  11.  
  12. $servername = "xxx";
  13. $username = "xxx";
  14. $password = "xxx";
  15. $dbname = "xxx";
  16.  
  17. $id = intval($_GET['id']); //casting to int type!
  18.  
  19. // Create connection
  20. $conn = new mysqli($servername, $username, $password, $dbname);
  21.  
  22. // Check connection
  23. if ($conn->connect_error) {
  24. die("Connection failed: " . $conn->connect_error);
  25. }else{
  26. echo '<script>console.log("Connection successful!")</script>';
  27. }
  28.  
  29. $SELECT2 = mysqli_query($conn,"SELECT * FROM `organization` WHERE organizationId=$id");
  30.  
  31. if($SELECT2 != false)
  32. {
  33.  
  34. while($rows2 = mysqli_fetch_array($SELECT2)){
  35. }
  36.  
  37. }else{
  38. echo "
  39. <tr>
  40. <td colspan='3'>Something went wrong with the query</td>
  41. </tr>
  42. ";
  43. }
  44. <?php
Add Comment
Please, Sign In to add comment