$stmt = "SELECT * FROM tablename LIMIT $place,1"; #### $stmt = "SELECT COUNT(*) FROM tablename";