Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once 'phpconnect2.php';
- function registration ($id) {
- $select=$pdo->prepare("SELECT * FROM users where id='" . $id . "'");
- $select->execute();
- $xarr=$select->fetchall(PDO::FETCH_ASSOC);
- if($xarr) {
- foreach ($xarr as $users) {
- $x=$users['login'];
- }
- }
- }
- $id=1;
- registration($id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement