Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysql_host = 'xxx';
- $port = '3307';
- $username = 'xxx';
- $password = 'xxx';
- $database = 'xxx';
- $db = new PDO('mysql:host='.$mysql_host.';dbname='.$database.';port='.$port, $username, $password );
- $qry = $db -> prepare("SELECT Count(*) AS c FROM user_data");
- $qry -> execute();
- $r = $qry -> fetchAll();
- print_r($r);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement