create the pdo connection like
$db = new PDO('mysql:host=localhost;dbname=testdb;charset=UTF-8', 'username', 'password', array(PDO::ATTR_EMULATE_PREPARES => false, PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) ); try query like
$query= $pdo$db->prepare("select * from user as u, leveluser as l where u.idLevelUser = l.idLevelUser limit $offset,$rows"); $query->execute(); $result=$articlequery->fetch(pdo::FETCH_ASSOC);