Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. require_once 'phpconnect2.php';
  2. function registration ($id) {
  3.     $select=$pdo->prepare("SELECT * FROM users where id='" . $id . "'");
  4.     $select->execute();
  5.     $xarr=$select->fetchall(PDO::FETCH_ASSOC);
  6.    
  7.     if($xarr) {
  8.         foreach ($xarr as $users) {
  9.             $x=$users['login'];
  10.         }
  11.     }
  12. }
  13. $id=1;
  14. registration($id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement