Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = $this->mysqli_link->query("SELECT custom_id FROM sjs_custom_orders ORDER BY custom_id DESC LIMIT 1")->fetch_array();
- $custom_id_old = $query['custom_id'];
- $custom_id_new_split = explode("/", $custom_id_old);
- $custom_id = $custom_id_new_split[2] + 1;
- $custom_id_new = "SJS/CUSTOM/" . $custom_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement