Advertisement
FlyFar

pages/config/config.php

Sep 2nd, 2023
878
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | Cybersecurity | 0 0
  1. <?php
  2. $bdd  = new PDO('mysql:host=localhost;dbname=fsociety','root','');
  3.  
  4. function get_target(){
  5.     global $bdd;
  6.     $select = $bdd->prepare("SELECT * FROM target WHERE 1");
  7.     $select->execute();
  8.     $fetch = $select->fetch();
  9.     return $fetch;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement