= (NOW() - INTERVAL 6 DAY) -- تم الإنشاء خلال آخر 3 أيام ORDER BY RAND() LIMIT 1; "; $stmt = $con->prepare($sql); $stmt->execute(); if ($stmt->rowCount() > 0) { $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); // فك تشفير أرقام الهاتف والإيميل foreach ($rows as &$r) { if (isset($r['phone_number']) && $r['phone_number'] != null) { $r['phone_number'] = $encryptionHelper->decryptData($r['phone_number']); } if (isset($r['email']) && $r['email'] != null) { $r['email'] = $encryptionHelper->decryptData($r['email']); } } jsonSuccess($rows); } else { jsonError("No phone numbers found in the last 5 days"); } ?>