Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <?php
  2.  
  3. require_once 'config.php';
  4.  
  5. class default_system {
  6.  
  7. function __construct( $pdo ) {
  8.  
  9. $this->pdo = $pdo;
  10.  
  11. }
  12.  
  13. function getData() {
  14.  
  15. $ID = $_GET[ 'id' ];
  16.  
  17. $Niche = "clash-clans";
  18.  
  19. $query = $this->pdo->prepare( "SELECT * FROM `affiliates` WHERE `Network_Code` = ':id' AND `Niche` = ':niche'" );
  20. $query->bindValue( ':id', $ID, PDO::PARAM_INT );
  21. $query->bindValue( ':niche', $Niche, PDO::PARAM_STR );
  22. $query->execute();
  23.  
  24. return $query->fetchAll(); // Return an Array of objects
  25.  
  26. }
  27.  
  28. }
  29.  
  30. /* Default System Settings
  31. column->ID => A/I ID
  32. column->Niche => Niche Name
  33. column->Language => Language of Landing Page ( en/fr )
  34. column->lockerURL => Title of Generator
  35. column->Google_ID => Google Analytics
  36. */
  37. $db_system = new default_system( $pdo );
  38. $system_default = $db_system->getData();
  39.  
  40. echo $system_default->lockerURL;
  41.  
  42. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement