This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| class Send extends CI_Controller { | |
| public function __construct() | |
| { | |
| parent::__construct(); | |
| // set library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function () { | |
| const data = new FormData(); | |
| data.append("image", image.files.length ? image.files[0] : ""); | |
| data.append('_token', document.querySelector('meta[name="csrf-token"]').getAttribute('content')); | |
| $.ajax({ | |
| type: "POST", | |
| url: HOST_MODULE, | |
| data, | |
| dataType: "json", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT member_id | |
| FROM | |
| (SELECT * FROM member ORDER BY member_parent, member_id ASC) as a, | |
| (SELECT @pv := 2) initialisation | |
| WHERE find_in_set(member_parent, @pv) > 0 AND @pv := CONCAT(@pv, ',', member_id) |
NewerOlder