6
ฉันจะพิมพ์ข้อความค้นหา Joomla ได้อย่างไร
สมมติว่าคุณได้สร้างแบบสอบถามด้วย Joomla // Get a db connection. $db = JFactory::getDbo(); // Create a new query object. $query = $db->getQuery(true); // Select all records from the user profile table where key begins with "custom.". // Order it by the ordering field. $query->select($db->quoteName(array('user_id', 'profile_key', 'profile_value', 'ordering'))); $query->from($db->quoteName('#__user_profiles')); $query->where($db->quoteName('profile_key') . ' LIKE '. …